Closed Bug 44767 Opened 24 years ago Closed 24 years ago

Bad: javascript:void(0); should do nothing

Categories

(Core :: JavaScript Engine, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED DUPLICATE of bug 43652

People

(Reporter: m_bukovjan, Assigned: rogerl)

References

()

Details

From Bugzilla Helper:
User-Agent: Mozilla/4.73 [en] (X11; U; Linux 2.2.16-3 i686)
BuildID:    Gecko/20000706

I have a link (href) which leads to "javascript:void(0)" . It should do nothing
when followed, but Mozilla displays an empty page. It does nothing under NS4 or
IE4, IE5

Reproducible: Always
Steps to Reproduce:
1.Create a page with a href pointing to somewhere
2.Change the href location by JavaScript to "javascript:void(0)"
3.When you click on a such a link, a blank page is displayed. It should do
nothing.

Actual Results:  Blank page is displayed instead of ignoring the link.							

Expected Results:  Nothing. / link is ignored

*** This bug has been marked as a duplicate of 43652 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Verified dupe.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.