Closed Bug 83115 Opened 24 years ago Closed 24 years ago

document.captureEvents(Event.MOUSEDOWN) not recognise as it is by Netscape 4.x

Categories

(Core :: DOM: Events, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 73981

People

(Reporter: fred.lorrain, Assigned: joki)

Details

I rededirect the event document.onmousedown to a special function. This function returns false in case it's the right or middle button that are clicked. Mozilla display the standard popup window with the corresponding options of an right click but Netscape 4.x doesn't do it. Does that mean Mozilla doesn't clearly understand the captureEvents ? Example : if (e.which != 1) { document.captureEvents(Event.MOUSEDOWN); alert("What are you trying to see"); return false; } With IE simply by returning false the event is disable. With Netscape I have to capture the Event with the command document.captureEvents(Event.MOUSEDOWN);. Is it now different in Mozilla ?
--> DOM Level 0
Assignee: rogerl → jst
Component: Javascript Engine → DOM Level 0
QA Contact: pschwartau → desale
Duplicate of bug 73981?
->DOM Events. CC'ing myself and jst I think you should use the DOM2 events stuff but i'm not sure how it works.
Assignee: jst → joki
Component: DOM Level 0 → DOM Events
QA Contact: desale → vladimire
For Netscape 6 use e.preventDefault() method to cancel the default action like the popup menu. Marking this is a duplicate of bug 73981. *** This bug has been marked as a duplicate of 73981 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
verified dups
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.