Knowledge Base

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

Article ID: 169809

Article Last Modified on 8/25/2005


APPLIES TO


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:

Additional query words: anchor showDocument URL

Keywords: kbother kbprb KB169809