Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stop popup from happening

Status
Not open for further replies.

zubz

Programmer
Mar 29, 2005
14
GB
I get a message when i run the following code in my page

window.close();

--------------
the web page you are viewing is trying to clode the window.
Do you want to clode the window??
------------------------------

Is there a way of supressing this warning so that the window is clode silently?

Thanks
 
yes there is, but I wouldn't expect it to work forever, the warning is there for a reason:
Code:
function closeFunction() {
   top.opener = self;
   top.window.close();
}

-kaht

[small] <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <B> <P> <.</B>[/small]
[banghead] [small](He's back)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top