Ron
08-16-2002, 08:44 PM
beetle post me a sample how to check if a window is open and it works. But if I try this code it does not can any one point me to the right way please?
**************
the window will be reloaded
if the win9 is open do not open again.
..........
<head>
<title>Untitled</title>
<script>
var win9;
function openwin(){
IF(!win9.closed){
win9=window.open("http://www.we....... ");
}
return
}
</script>
</head>
<body>
<script>
openwin();
</script>
<input type="button" value="Check Pop" onClick="alert(win9.closed)">
thank you in advance
Ron
**************
the window will be reloaded
if the win9 is open do not open again.
..........
<head>
<title>Untitled</title>
<script>
var win9;
function openwin(){
IF(!win9.closed){
win9=window.open("http://www.we....... ");
}
return
}
</script>
</head>
<body>
<script>
openwin();
</script>
<input type="button" value="Check Pop" onClick="alert(win9.closed)">
thank you in advance
Ron