PRB: Using AppletContext.showDocument() to navigate to an Anchor (169809)



The information in this article applies to:

  • Microsoft Visual J++ 1.0, when used with:
    • the hardware: Intel x86
  • Microsoft Visual J++ 1.1, when used with:
    • the hardware: Intel x86
  • Microsoft Internet Explorer (Programming) 3.01, when used with:
    • the hardware: Intel x86
  • Microsoft Internet Explorer (Programming) 3.02, when used with:
    • the hardware: Intel x86
  • Microsoft virtual machine

This article was previously published under Q169809

SYMPTOMS

Calling AppletContext.showDocument(URL) with a URL that contains an anchor (http://myserver/mypage.html#myanchor) opens the correct Web page but does not navigate to the anchor.

CAUSE

A problem with Internet Explorer 3.x prevents navigation to the anchor.

RESOLUTION

Use two pound sign's (#) instead of one before the anchor name (for example, http://myserver/mypage.html##myanchor). Internet Explorer 3.x will interpret this as having one pound sign and navigate to the anchor.

STATUS

Internet Explorer 4.0 does not exhibit this behavior and ignores the extra pound sign if present.

REFERENCES

For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following pages on the Microsoft Technical Support site:

Modification Type:MinorLast Reviewed:8/25/2005
Keywords:kbother kbprb KB169809