Article ID: 938306 - Last Review: September 28, 2011 - Revision: 3.0

Internet Explorer stops unexpectedly when you try to use a JavaScript command to start Internet Explorer at a specific size and location

System TipThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.
Expand all | Collapse all

SYMPTOMS

When you try to use the following command to start Windows Internet Explorer at a specific size and location, the command does not work, and Internet Explorer stops unexpectedly:
"C:\Program Files\Internet Explorer\IEXPLORE.EXE" "javascript:resizeTo(800,600);moveTo(0,0);document.location.href='http://www.msn.com'"
This problem occurs when you use the following versions of Microsoft Windows:
  • Microsoft Windows XP with Service Pack 2
  • Microsoft Windows Server 2003 with Service Pack 1
This problem does not occur when you use the following versions of Windows:
  • Microsoft Windows 2000 with Service Pack 4
  • Microsoft Windows Server 2003 without a service pack installed

CAUSE

This problem occurs because you cannot use JavaScript to resize the Internet Explorer window. This restriction is for security reasons. Internet Explorer does not support using JavaScript from the command line.

APPLIES TO
  • Windows Internet Explorer 9
  • Windows Internet Explorer 7
  • Windows Internet Explorer 7 for Windows XP
  • Windows Internet Explorer 7 for Windows Server 2003
Keywords: 
kbbug kbexpertiseinter kbexpertisebeginner kbtshoot kbprb KB938306