sayedsohail Posted July 12, 2007 Share Posted July 12, 2007 Hi everyone, window.open lets me open a window on top of the main window. Is there a way i could display this window upfront untill the users choses to close the popup window. any direction would be highly appreciated. thanks, Quote Link to comment Share on other sites More sharing options...
sayedsohail Posted July 12, 2007 Author Share Posted July 12, 2007 here i am able to open the popup window but when i close, it won't open it again. any suggestions would be highly appreciated. var newwindow=0; function popup(mylink, windowname) { if (!window.focus) return true; var href; if (typeof(mylink) == 'string') href=mylink; else href=mylink.href; if (newwindow) {newwindow.focus()} else { newwindow=window.open(href, windowname, 'width=600,height=400,left=200,top=200,screenX=0,screenY=100,toolbar=no,location=no,directories=no,copyhistory=no,status=no,menubar=no,scrollbars=no,resizable=no'); return false; } } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.