Forum Moderators: open

Message Too Old, No Replies

Popup Window in IE7

         

matthewamzn

11:19 pm on Aug 1, 2006 (gmt 0)

10+ Year Member



I've got my popup window working with firefox and opera, but IE7 doesn't work. Any idea on why this code wouldn't work in IE7?

<html><head><SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
<!--
var chatroomWindow=null;
function chatroom(mypage,myname,w,h,pos,infocus){
{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';chatroomWindow=window.open('',myname,settings);
if(infocus=='front'){chatroomWindow.focus();chatroomWindow.location=mypage;}
if(infocus=='back'){chatroomWindow.blur();chatroomWindow.location=mypage;chatroomWindow.blur();}

}
// -->
</script>
</head>
<body><a href="javascript:chatroom('http://www.example.com/chat.php','Chat Room','610','410','center','front');">Chat Room</a>
</body></html>

matthewamzn

11:56 pm on Aug 1, 2006 (gmt 0)

10+ Year Member



The IE error message says there's an invalid argument in line 6.