Click to See Complete Forum and Search --> : window.close from other page
itheperson
09-27-2003, 04:44 AM
I have a navigation, various pop-ups are linked to it then a button to close any pop-ups that are open. Except I don't know how to close the windows from the navigation on another page.
Please help me :)
Khalid Ali
09-27-2003, 08:17 AM
to do that you will need to name uniquly each child window and when yu want to close them just refer to them using their handle e.g
var newWin1 = window.open();
if(!newWin.closed){
newWin.close();
}
itheperson
09-27-2003, 06:39 PM
OK what I have is 5 linked images, each one opens up a pop-up. Then I have another linked image which will close the windows.
Sorry, i'm not amazing at JS, so some coding help would be appriciated :)
Khalid Ali
09-27-2003, 06:54 PM
before that,you need to show me the existing code which opens all of your child windows....
itheperson
09-27-2003, 08:20 PM
<area shape="rect" coords="3,121,12,138" href="#" title="-+ No Woman No Cry -+" alt="-+ No Woman No Cry -+" onclick="Popup=window.open('mp3/play.php?m=1','m1','toolbar=no, location=no,status=no,menubar=no,scrollbars=no,resizable=no, width=310,height=170'); return false;">
that's one of them, the others just change the url.