A New Internet Explorer Window Does Not Always Open When You Click Hyperlinks (272415)



The information in this article applies to:

  • Microsoft Internet Explorer 5.5 for Windows NT 4.0
  • Microsoft Internet Explorer 5.01 for Windows NT 4.0 SP 1
  • Microsoft Internet Explorer 5.0 for Windows NT 4.0
  • Microsoft Internet Explorer 4.01 for Windows NT 4.0 SP 1
  • Microsoft Internet Explorer 4.01 for Windows NT 4.0 SP 2
  • Microsoft Internet Explorer 5.5 for Windows 98 Second Edition SP 1
  • Microsoft Internet Explorer 5.01 for Windows 98 Second Edition SP 1
  • Microsoft Internet Explorer 5.5 for Windows 98 SP 1
  • Microsoft Internet Explorer 5.01 for Windows 98 SP 1
  • Microsoft Internet Explorer 5.0 for Windows 98
  • Microsoft Internet Explorer 4.01 for Windows 98 SP 2
  • Microsoft Internet Explorer 5.5 for Windows 95
  • Microsoft Internet Explorer 5.01 for Windows 95 SP 1
  • Microsoft Internet Explorer 5.0 for Windows 95
  • Microsoft Internet Explorer 4.01 for Windows 95 SP 1
  • Microsoft Internet Explorer 4.01 for Windows 95 SP 2
  • Microsoft Internet Explorer 5.5 for Windows 2000 SP 1
  • Microsoft Internet Explorer 5.01 for Windows 2000 SP 1
  • Microsoft Internet Explorer version 6 for Windows 2000
  • Microsoft Internet Explorer version 6 for Windows 98
  • Microsoft Internet Explorer version 6 for Windows 98 Second Edition
  • Microsoft Internet Explorer version 6 for Windows Millennium Edition
  • Microsoft Internet Explorer version 6 for Windows NT 4.0

This article was previously published under Q272415

SYMPTOMS

When you click a hyperlink on a Web site, the hyperlink does not open in a new Internet Explorer window, as expected. Instead, the hyperlink opens in the same Internet Explorer window or in another currently open Internet Explorer window.

CAUSE

This behavior can occur if the Web site uses the TARGET=NEW attribute to open the hyperlinks.

RESOLUTION

To resolve this behavior, request that the Web site's Webmaster change the setup of the target hyperlinks on the site's Web pages.

As an alternative, you can right-click the hyperlink, and then click Open in New Window to view the Web page in a new Internet Explorer window.

MORE INFORMATION

Web designers can use the TARGET=NEW attribute on an anchor in Hypertext Markup Language (HTML) to enable users to open a second window in Internet Explorer, but NEW is not a supported attribute for the target tag. If you click a hyperlink that uses the TARGET=NEW attribute, a second Internet Explorer window may open, but if you click subsequent hyperlinks by using the same attribute, a third Internet Explorer window does not open.

This behavior occurs because there may be an error in the HTML coding, which is used to set up the Web site. There are five possible ways that the target attribute can be used. The following list details how to use the correct target attribute, according to the World Wide Web Consortium (W3C):
  • TARGET=_BLANK
    Loads the hyperlink into a new, blank, nameless window
  • TARGET=_PARENT
    Loads the hyperlink in the parent of the document that contains the hyperlink
  • TARGET=_SELF
    Loads the hyperlink in the same window in which you click the hyperlink
  • TARGET=_TOP
    Loads the hyperlink in the full body of the window
  • TARGET={variable}
    Loads the hyperlink in the {variable} window
Hyperlinks that use the TARGET=_BLANK attribute always open a new Internet Explorer window, while hyperlinks that use the TARGET=NEW attribute open a new Internet Explorer window only once.

For more information, please visit the following (W3C) Web site: If you use the TARGET=NEW attribute, the expected behavior is demonstrated in the following example:
  1. Double-click the Internet Explorer icon to open WindowA. (WindowA does not have a name.)
  2. While you browse the Internet, you can click the hyperlink that uses the TARGET=NEW attribute. This action causes Internet Explorer to open the hyperlink in a window named "New". WindowA is nameless, therefore, Internet Explorer does not load the hyperlink in WindowA. Internet Explorer opens a new window, WindowB, named "New".
  3. While you browse in WindowA or WindowB, you can click another hyperlink that uses the TARGET=NEW attribute. Internet Explorer loads the hyperlink in WindowB (not a new Internet Explorer window) because the target is set to "New" and the name of WindowB is "New".
This behavior is by design. Internet Explorer adheres to the W3C target attribute definition. This behavior is by design. Internet Explorer adheres to the W3C target attribute definition.

NOTE: The purpose of this article is to point out a common error in HTML coding. This behavior is not an issue in Internet Explorer.

Modification Type:MinorLast Reviewed:1/16/2006
Keywords:kbprb kbweb KB272415