onClick-event firing and right-clicks

VERIFIED INVALID

Status

()

P3
normal
VERIFIED INVALID
19 years ago
18 years ago

People

(Reporter: ssch, Assigned: joki)

Tracking

Trunk
x86
Windows NT
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
---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

Updated

19 years ago
Assignee: mccabe → joki
Component: Javascript Engine → Event Handling
QA Contact: rginda → janc

Comment 1

19 years ago
Not quite sure who this belongs to.  Tentatively assiging to event handling, in
case they have a better clue.
(Assignee)

Comment 2

19 years ago
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
Last Resolved: 19 years ago
Resolution: --- → INVALID

Updated

19 years ago
Keywords: verifyme

Comment 3

19 years ago
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
You need to log in before you can comment on or make changes to this bug.