jvrothjr Posted January 2, 2007 Share Posted January 2, 2007 [code]<script language='javascript'> win = window.open('index.php', 'master', 'channelmode=no,scrollbars=yes,resizable=yes,status=1','True'); window.opener=self; if (self != win) { window.close(); } </script>[/code]Above is my code for opening a new window with toolbars and menus offthis works if we use the DNS ID but not the IP address for any IE below 7 ???But with IE7 both work but IE7 displays the URL address bar read only. ???Is there a way to turn the URL on as read only in this script and see if this works in IE6 ??? Link to comment https://forums.phpfreaks.com/topic/32583-solved-help-with-open-window-script/ Share on other sites More sharing options...
fenway Posted January 3, 2007 Share Posted January 3, 2007 I haven't developed on IE7 yet, but I know they added a whole whack of security features, and this may be one of them. Link to comment https://forums.phpfreaks.com/topic/32583-solved-help-with-open-window-script/#findComment-151869 Share on other sites More sharing options...
jvrothjr Posted January 3, 2007 Author Share Posted January 3, 2007 We have found a fix for this issue[code]<script language='javascript'> window.onload = poponload; function poponload() {//Set variables, version is IE version number var ua = window.navigator.appVersion; var msie = ua.indexOf ( "MSIE " ); var version = ua.substring(msie+5,msie+6);//Open new window var win = window.open ('index.php', 'master', "scrollbars=1,resizable=1,status=1,dependent=yes,alwaysRaised=yes");//Check version number and run correct code if (version >= "7") { if (win) { window.open('', '_parent',''); window.close(); } } else { self.opener = this; setTimeout('self.close()',500); }; }</script>[/code]This checks the IE version and action required based on that Link to comment https://forums.phpfreaks.com/topic/32583-solved-help-with-open-window-script/#findComment-152411 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.