Scripting Errors Loading Web Pages with VBScript and JScript

ID: Q204339


The information in this article applies to:
  • Microsoft Internet Explorer versions 4.0, 4.01, 4.01 Service Pack 1, 4.01 Service Pack 2, 5 for Windows 95
  • Microsoft Internet Explorer versions 4.01 Service Pack 2, 5 for Windows 98
  • Microsoft Internet Explorer versions 4.0, 4.01, 4.01 Service Pack 1, 4.01 Service Pack 2, 5 for Windows NT 4.0
  • Microsoft Windows 98


SYMPTOMS

When you attempt to view Web pages that contain both VBScript and JScript, you may receive scripting error messages, such as the following error message:

Expected end of statement


CAUSE

If Web page contains multiple scripts, the <SCRIPT> tag defaults to VBScript instead of JScript if the first script on the page is associated with the VBScript engine.

Typically, the "Expected end of statement" error message occurs when the VBScript engine encounters the semicolon at the end of the first JScript statement.


RESOLUTION

To prevent this problem from occurring on Web pages that contain multiple scripting engines, the Web page author should specify which scripting engine to use for each script tag.


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

Additional query words:

Keywords : kberrmsg msiew95 msient msiew98
Version : WINDOWS:4.0,4.01,4.01 Service Pack 1
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: April 2, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.