need help

H

hussein

i have added in my page a java script thats will close the window
"window.close()", but while debuging when it reaches this line it will give
the user a message telling him that the window will close ( yes or no ) so
am i able to stop tis message to make it close directly ??.
another thing is that window.open() will give me a new window am i able to
stop accessing the page that loaded this command till the user finishes from
the new one
 
R

Ronx

In my experience the confirm close window dialogue will appear in two
situations (there may be others)
1 The window being closed has been used to display more than one web
page - in other words the back and/or forward buttons on the browser being
closed are active (or would be if the window displayed the buttons)

2 The Window is the only browser window that is open.


You could insist that all your users change to Firefox as their browser.
Firefox never displays the message (but this may be impractical).

or change the link to something like
<a href="javascript:;" onclick="window.opener='self';window.close();return
false;">close window</a>

Ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top