window.open doesn't work when called with <a href=javascript:func()>...</a>

RESOLVED WORKSFORME

Status

()

RESOLVED WORKSFORME
14 years ago
14 years ago

People

(Reporter: ajaxas, Assigned: bugzilla)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1

Create a javascript function that opens new window (function fun(){var newW;
newW=window.open()) and call it with <a href=javascript:function_name()>...</a>
- wouldn't work.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
WFM

data:text/html,<html><head><script>function fun(){var
newW;newW=window.open();}</script></head><body><a
href="javascript:fun()">fun</a></body></html>

If you have an example that should work but fails, please add it as an
attachment (or a data: URL) and reopen.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → WORKSFORME
(Reporter)

Comment 2

14 years ago
(In reply to comment #1)
man WFM
Exactly as you wote. Scuse me, didn't understand what you wanted me to do. The
simpliest example you've described doesn't work. Other browsers OK.
You need to log in before you can comment on or make changes to this bug.