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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

KILL THE PARENT

Status
Not open for further replies.

memememe

Programmer
Jul 3, 2002
5
0
0
US
anyone know how to kill a parent window after it has spawned a child without an annoying warning button?
 
u cant do it, unless u have created that parent window via javascript...

so, writin

var wnd=window.open('newpage.html','','')

(may be from ur index page)
and than from that newpage.html do whatever u want, but be shure 2 write there <body onblur=&quot;self.close()&quot;> - this will make this new window close without message box alerting that u're tryin 2 do that as this page will loose focus (when it wuld open another window or smth)...

regards, vic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top