Revision: 31267
Updated Code
at September 2, 2010 04:16 by magicrebirth
Updated Code
// construct for explorer compatibility var newwindow = ''; // EG: pop_up_window("http://www.google.com", 200, 200) function pop_up_window(url, sizeh, sizew) { if (!newwindow.closed && newwindow.location) { newwindow.location.href = url; } else { newwindow=window.open(url,'name','height=' + sizeh + ', width=' + sizew + ', status=1, resizable=1, location=1, scrollbars=1 '); /*resizable=1*/ if (!newwindow.opener) newwindow.opener = self; newwindow.moveTo(100,100); } if (window.focus) {newwindow.focus()} return false; }
Revision: 31266
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 2, 2010 04:15 by magicrebirth
Initial Code
// construct for explorer compatibility var newwindow = ''; // EG: pop_up_window("http://www.google.com", 200, 200) function pop_up_window(url, sizeh, sizew) { if (!newwindow.closed && newwindow.location) { newwindow.location.href = url; } else { newwindow=window.open(url,'name','height=' + sizeh + ', width=' + sizew + ', status=1, resizable=1, location=1, scrollbars=1 '); /*resizable=1*/ if (!newwindow.opener) newwindow.opener = self; newwindow.moveTo(100,100); } if (window.focus) {newwindow.focus()} return false; }
Initial URL
Initial Description
Initial Title
JS: open popup window
Initial Tags
js, textmate, window
Initial Language
JavaScript