window.close()
-
Hi all =-=-=-= in my HTML I need to open a window. everything OK.... but then... I was asked to close it
function OpenIt()
{
open("http://URL.com","MyNewWindow");
}function CloseIt()
{
//mmmmmmmmm..... I dont know
}Please Help:confused: =-=-=-=-=-=-=- The Server :rose:
-
Hi all =-=-=-= in my HTML I need to open a window. everything OK.... but then... I was asked to close it
function OpenIt()
{
open("http://URL.com","MyNewWindow");
}function CloseIt()
{
//mmmmmmmmm..... I dont know
}Please Help:confused: =-=-=-=-=-=-=- The Server :rose:
Hi there this is a bit ironic but anyway thanx for the help and this is what my book says regarding this.
var popwindow; function popup(){ popwindow = window.open("popup.html","","top=40,left=40,width=200,height=100,directories,location,menubar,resizeable,scrollbars,toolbar"); } function close_popup(){ if (popwindow !=null )popwindow.close(); } window.onload = popup; window.onunload = close_popup;
Hope this helps not sure though!! Stay well and ejoy life to the max