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)

1.7 Branch
All
Windows 2000
defect
Not set
normal

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.
Reporter, could you attach a mininal testcase using
https://bugzilla.mozilla.org/attachment.cgi?bugid=297120&action=enter if
possible? Thanks!
Just run the .htm file with Firefox.
Attached file reduced testcase
Even a simple |onclick="return false;"| fails when the image is an imagemap.

*** 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
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: