Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Removing menu after ...close() JS
Closed Thread
Old 08-14-2004, 11:53 AM   #1 (permalink)
milen's Avatar
 
Super Techie

Join Date: Feb 2004

Posts: 304

milen is on a distinguished road

Default Removing menu after ...close() JS

I have 2 pages let say 1.html and 2.html.

From 1.html button to 2.html.

I want after 2.html is loaded to close 1.html
without menu OK-Cancel

what I did:

1.html code:
function Open2html(){
1html=window.open("2.html","DoYouWantSize=NotReall y","AnythingElse=no")
}

<body>
<form>
<input value="OpenThatPage" onclick="Open2html()">
</form>
etc...

2.html -code:

function close1.html(){
if (opener && !opener.closed){
opener.close()
}
}
</script>
<body onload="close1html()">
Some text gose hereeeee
--------
OK everithing ok But IS coming that menu
Are Sure You Want to Close 1.html Window

OOOOO yeah why I am typing this code than?


Any Option to not show this OK-CANCEL menu?

Thank you
milen is offline  
Old 08-18-2004, 11:33 PM   #2 (permalink)
 
Super Techie

Join Date: Dec 2003

Posts: 333

Harold III

Send a message via AIM to Harold III
Default

try <body onload="window.close()" target=main>
__________________
I do this for Aiur. NOT YOU.
Harold III is offline  
Old 08-21-2004, 03:58 AM   #3 (permalink)
milen's Avatar
 
Super Techie

Join Date: Feb 2004

Posts: 304

milen is on a distinguished road

Default

no,

this is not working,
I set <base target="main"> in page 1.html
the put this code to page 2.
And is trying to close page 2 ....


Any other options I run out....
milen is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On