Popup window not opening on IE7


Popup window not opening on IE7



Hi Javascript gurus, I have this Javascript code which is working fine on Firefox , but it is not working on IE 7. Any ideas why?

Here is the code

function TestWindow() {      SimpleWindow('Default.aspx', 'Simple Test', 200, 200, 'yes') }  function SimpleWindow(mypage,myname,w,h,scroll) {      var win= null;      var winl = (screen.width-w)/2;       var wint = (screen.height-h)/2;      settings='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',toolbar=no,location=no,status=no,menubar=no,resizable=no,dependent=no'      win=window.open(mypage,myname,settings)      if(parseInt(navigator.appVersion) >= 4)         {             win.window.focus();         }     } 



What does this refer to in an onfilterchange attribute?

1:



IE7 spacing within a UL
You may have realized that IE is giving the error "Invalid argument.".
Open Barebones IE with Shortcut
IE doesn't seem to like window names with spaces in them.


IE7 cause of “Text - Empty Text Node”
Change 'Simple Test' to 'SimpleTest' etc..
Managing ajax Couchdb calls and IE's (hta) agressive cache


ie associative array initialisation fails


IE image width & height = 0 before image downloaded

2:



jQuery click function on LI doesn't work in IE
For myname parameter use only a-zA-Z0-9 characters.

IE doesn't like any other, especially whitespace characters..


3:


Check popup blockers.


4:


Check for reserved words.

Your parameter name "scroll" is probably messing up your code in IE..



80 out of 100 based on 80 user ratings 830 reviews

@