Closed
Bug 297120
Opened 19 years ago
Closed 19 years ago
JavaScript confirm() function always returns true when placed on imagemap
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 116317
People
(Reporter: spam, Unassigned)
Details
Attachments
(2 files)
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 If a JavaScript confirm() function is placed on a imagemap in order to ask the user if he/she wishes to continue, the confirm function never returns false or halts the page load. Reproducible: Always Steps to Reproduce: 1. Make an image into an imagemap 2. Add an onclick event (e.g. onclick="return ConfirmTag();") 3. Return false if the user enters the cancel button. Actual Results: The return false does not fire. Expected Results: It should return false.
Comment 1•19 years ago
|
||
Reporter, could you attach a mininal testcase using https://bugzilla.mozilla.org/attachment.cgi?bugid=297120&action=enter if possible? Thanks!
Comment 3•19 years ago
|
||
Even a simple |onclick="return false;"| fails when the image is an imagemap.
Comment 4•19 years ago
|
||
*** This bug has been marked as a duplicate of 116317 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Component: Tabbed Browser → Event Handling
Product: Firefox → Core
Resolution: --- → DUPLICATE
Version: unspecified → 1.7 Branch
Assignee | ||
Updated•5 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•