BUG: Redirection in Anchor Tag Using Location.href Fails (185376)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 4.0
- Microsoft Internet Explorer (Programming) 4.01
This article was previously published under Q185376 SYMPTOMS
Placing a call to location.href in an anchor tag does not cause navigation
to be redirected to that HREF when the user clicks on the link.
CAUSE
This behavior is by design.
RESOLUTION
The workaround is to use the "javascript:" syntax for the HREF attribute of
the anchor tag. Please see the MORE INFORMATION section for sample code
that demonstrates this workaround.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. REFERENCESFor more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:
Modification Type: | Major | Last Reviewed: | 5/11/2006 |
---|
Keywords: | kbbug kbpending KB185376 |
---|
|