English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

If I want my links to open up little windows but then I want them to know that they can close it... that they haven't gone to a new page... they just close the little window when they are done with it...
also - does it work the same on a Mac? will mac browsers keep multiple windows open at the same time?

2007-02-20 05:54:51 · 3 answers · asked by rabble rouser 6 in Computers & Internet Programming & Design

3 answers



Close

If you don't set the opener as self, the user will get a security alert from their browser saying something like "The web page is trying to close this window. Are you sure you want to allow it?"

The other option would be to put the close function in your parent window:

function closeWindow(winToClose)
{
winToClose.close();
}

and reference from the child window like so:

Close

2007-02-20 06:18:53 · answer #1 · answered by Rex M 6 · 1 1

do this it would artwork.