Click to See Complete Forum and Search --> : how to check if a window exists


sudhir_shet
04-22-2003, 02:29 AM
How to check if a window exists using js.please provide the code.

Thanks in Advance.

SniperX
04-22-2003, 05:21 AM
It doesnt make sense

khalidali63
04-22-2003, 05:39 AM
var newWin = window.open(url,"newWin");

now you can check it this above window is closed or not

if(newWin.closed){
//its closed
}else{
its not
}

SniperX
04-22-2003, 07:22 AM
Sorry Mr clark, please accept my humble apologies