Closed Bug 579725 Opened 15 years ago Closed 15 years ago

links with javascript: href should always open in the current tab

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: fryn, Unassigned)

Details

<a/> and <area/> elements with a href attribute that specifies the javascript protocol should always execute the script in the current tab and never in a new tab or window. Currently, if you set the target attribute of the link, it will open and execute in a new tab. Also, if you hold shift while clicking the link, it will open and execute in a new window. This does not remove any potential functionality for javascript urls, since window.open can still be called within the script to execute code in a new tab or window. See also: bug 55696 - Force JavaScript link to open in new window or new tab (which is actually not the opposite of this bug) bug 335963 - better link activation API NOTE: I'm not sure which component within which this bug fits, so feel free to change the component if you know better. :)
after some brief thinking and discussion, i realized that having the target attribute set to something should cause the link to open in a new tab my default. WONTFIXing. check out bug 251137 instead.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.