Microsoft KB Archive/938306

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

Article ID: 938306

Article Last Modified on 10/27/2007

-

APPLIES TO


 * Windows Internet Explorer 7
 * Windows Internet Explorer 7 for Windows XP
 * Windows Internet Explorer 7 for Windows Server 2003

-



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:

&quot;C:\Program Files\Internet Explorer\IEXPLORE.EXE&quot; &quot;javascript:resizeTo(800,600);moveTo(0,0);document.location.href='http://www.msn.com'&quot;

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.

Keywords: kbtshoot kbbug kbprb kbexpertiseinter kbexpertisebeginner KB938306

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.