Closed Bug 24100 Opened 25 years ago Closed 25 years ago

onClick-event firing and right-clicks

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: ssch, Assigned: joki)

Details

---Codesample--------------------------------------------------------------

<html>
<head>
<script language="JavaScript">
<!--
function rewrite_2(anchor, source, target)
{
	anchor.href = source;
}
//-->
</script>
</head>
<body>
<p>Test onClick by a <a href="http://www.netscape.org" onClick="rewrite_2(this,
'www.mozilla.org');">rigth click</a></p>
</body>
</html>

---comment------------------------------------------------------------------

In Netscape CC 4.5 and Microsoft IE 5.0 right clicking on the above link
opens "netscape", a left click opens "mozilla"; in the M12 mozilla browser both
kind of clicks open the "mozilla" page
Assignee: mccabe → joki
Component: Javascript Engine → Event Handling
QA Contact: rginda → janc
Not quite sure who this belongs to.  Tentatively assiging to event handling, in
case they have a better clue.
This is essentially a bug in 4.x which is now fixed in 5.0.  All mouse buttons 
can now cause clicks as opposed to the arbitrary choice of left button only in 
4.x.  You can check the event object's 'button' prop to differentiate the 
events.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Keywords: verifyme
Verified invalid.
Status: RESOLVED → VERIFIED
finally responding to some email i got from mpt [pardon the delay!]: this is not
a problem for me, using 2000.12.07.09 mozilla on win98 [and a 3-button mouse,
fwiw]. removing verifyme kw, too.
Keywords: verifyme
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.