KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q183371: Jumpmenu.htm Returns JavaScript Error

Article: Q183371
Product(s): Microsoft Press
Version(s): 
Operating System(s): 
Keyword(s): 
Last Modified: 07-JAN-2000

-------------------------------------------------------------------------------
The information in this article applies to:

- MSPRESS Running Microsoft FrontPage 98 ISBN 1-57231-645-4 
-------------------------------------------------------------------------------

SYMPTOMS
========

When you click the Jump button on the \hello\jumpmenu.htm page, you may receive
the following error message:

  An error has occurred in the script on this page.
  Line: 36
  Char: 1
  Error: 'Window' is undefined
  Code: 0

CAUSE
=====

The JavaScript code used on this page was written for Microsoft Internet
Explorer 3.0. When using Microsoft Internet Explorer 4.0 and some other Web
browsers, the code returns this error.

RESOLUTION
==========

Change the source code of the page to read as follows:

Change:

   <input type="submit" name="btnJump" value="Jump"
   language="JavaScript" onclick="Window.location.href = nexturl">

To:

   <input type="button" name="btnJump" value="Jump"
   language="JavaScript" onclick="window.location.href = nexturl">

STATUS
======

Microsoft has confirmed this to be a problem in Running Microsoft FrontPage 98.

MORE INFORMATION
================

This behavior will not appear when using Microsoft Internet Explorer 3.0, 3.01,
or 3.02.


Additional query words: ms_press press bookbug 1-57231-645-4

======================================================================
Keywords          :  
Technology        : kbMSPressSearch
Version           : :
Issue type        : kbbug
Solution Type     : kbpending

=============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.