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!

auto close window

Status
Not open for further replies.

moniong

Programmer
Sep 10, 2002
3
US
I've inserted an auto close code in my web page, my problem is that there's always a message box appearing to confirm if I want to close that window, how can i disable it and just close that window?
 
Did you ever receive an answer to this or find out how to do it? I am having the same problem and cannot find out how to work around it.
 
This is what I use....

Response.write &quot;<SCRIPT language=&quot;&quot;javascript&quot;&quot;>&quot; & vbCrLf
Response.write &quot;<!--&quot; & vbCrLf
Response.write &quot; function CloseWindow() {&quot; & vbCrLf
Response.write &quot; daddy = window.parent.self;&quot; & vbCrLf
Response.write &quot; daddy.opener = window.parent.self;&quot; & vbCrLf
Response.write &quot; daddy.close();&quot; & vbCrLf
Response.write &quot; }&quot; & vbCrLf
Response.write &quot; CloseWindow()&quot;
Response.write &quot;//-->&quot; & vbCrLf
Response.write &quot;</SCRIPT>&quot;

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top