Forum Moderators: open
<script language="JavaScript">
<!-- Hide script from older browsers
{myWin = open('', 'winin','top=10,left=10,toolbar=0,menubar=0,scrollbars=1,status=0,resizable=1,width=650,height=460');
myWin.blur();
myWin.location = 'http://www.mysite.com/myfolder/index.html';}
// end hiding contents -->
</script>
____________________________________________________
I would like to use the top code and have it reload the window rather than clobber visitors with multiple pop-ups. With the top code the window forms behind the browser - with the bottom code the window forms in front and then drops behind.
Any thoughts?
-s-
The second code names the target frame/window ('winin'), so the first time it runs it will pop open a new window and call it 'winin', and subsequent times the function is called, the page will open in the 'winin' window.
You could add a second argument to Open() (the name of the frame/window, or '_self', or you could replace the contents of stc() with:
window.location.href = 'http://www.mysite.com/myfolder/index.html';
... And I agree with Korkus that you probably don't want to set a timeout of zero, etc
Shawn