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, Link to comment https://forums.phpfreaks.com/topic/59637-solved-popup-window-display-on-top-of-the-main-window/ 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; } } Link to comment https://forums.phpfreaks.com/topic/59637-solved-popup-window-display-on-top-of-the-main-window/#findComment-296428 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.