Closed Bug 65193 Opened 24 years ago Closed 24 years ago

onMouseOver='window.status="bar"' has no effect

Categories

(Core :: JavaScript Engine, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: ntokozo, Assigned: rogerl)

References

Details

Attachments

(1 file)

an onMouseOver in an HMTL A tag has no effect. see below: <A HREF='menu.cgi?first_value=$j_value&user_id=$user_id' TARGET=MENU onMouseOver='window.status=\"view request form\"'>&gt;&nbsp;view request form</A> On Netscape Navigator 4.7 this would display the "view request form" in the status bar. In Netscape Navigator 6 the value of HREF is displayed.
*** Bug 65194 has been marked as a duplicate of this bug. ***
This behavior was observed in Mozilla 2001010504 WinNT English and not just Netscape 6 as mentioned in the bug report. While Mozilla's behavior here is inconsistent in how it handles events for different elements, it is consistent with older browsers. The code included by the reporter is invalid because of the escaped doublequote (it causes a JavaScript error in Mozilla and IE5). However, after correcting that, the statusbar message still didn't show up in Mozilla or IE5. Only after adding return true to the onMouseOver did the statusbar message show up in Mozilla and IE. For onmouseover outside of a link (such as on a paragraph), the return true is unnecessary. JavaScript: The Definitive Guide (by David Flanagan and published by O'Reilly) on page 285 where talking about the onMouseOver event says "For links, return true to prevent URL from appearing the status bar." This is exactly what is required in Mozilla and IE5. I closing this as invalid since it behaves like the older browsers.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Yes, but if you like "a:hover" to work also, you better forget that "return true;" and change that in "return false;" Because, that's just another bug in Mozilla.
Verifying Invalid -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: