The information in this article applies to:
SYMPTOMSWhen browsing a page, you receive an error message similar to one of the following. Internet Explorer 4.0You will have the option to click Yes or No. Internet Explorer 3.02These error messages may vary, depending on the type and version of your browser. CAUSEThis behavior occurs because you have added Microsoft Visual Basic Scripting Edition (VBScript) code in the <HEAD> tag of a page containing a navigation bar. When you browse the page, the browser generates an error. Hover buttons use JavaScript code in the event handlers. By placing VBScript code in the <HEAD> tag, you are setting the Internet Explorer default script environment to VBScript. This being the case, Internet Explorer will interpret your IF statement in the ONMOUSEOVER event as if it were VBScript, rather than JavaScript. When VBScript does not see a THEN to complete the IF ... THEN statement, the browser generates the error message. RESOLUTIONTo resolve this issue, use any of the three methods. Method 1Ensure that the first script encountered on a page is JavaScript instead of VBScript.Method 2Add a JavaScript protocol indicator to each event handler, as in the following example:
NOTE: Enter this text as a single line of HTML code.
Method 3Add a LANGUAGE="JAVASCRIPT" attribute to the <A HREF> tag, as in the following example:
NOTE: Enter this text as a single line of HTML code.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. Additional query words: front page
Keywords : kbdta fpedit fphtml fpscript |
Last Reviewed: July 26, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |