Firefox opens a new tab instead of javascript code

davids

I have a web site with this element:

<a id="ProPayHyperLink" href="javascript:$ProPay.playIntro('ProPay');" target="_blank">ProPay Payment Center</a>

In Chrome, it successfully runs the $ProPay.playIntro script. However, when I run the site in FireFox or IE, I get a new blank tab. Using debugger, I can see that it never gets to the javascript code.

I am running IE 11 and Firefox 30.0

What am I doing wrong?

UPDATE I use target="_blank" because the javascript href is temporary and only for specific situations, and because it didn't cause issues in Chrome. I can always add and remove it as needed though.

doniyor

Try to remove target blank, as Pinal says, browsers support it differently.

<a id="ProPayHyperLink" href="javascript:$ProPay.playIntro('ProPay');" >ProPay Payment Center</a>

I am in train, sorry for not full answer.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Firefox opens new window instead of link

From Dev

How to make this HTML code opens in a new tab?

From Dev

Why javascript triggered submit form (method get, target blank) opens popup instead new tab?

From Dev

Yahoo Search opens when I open a new tab in Firefox

From Dev

angular tab selection opens new page instead of open in the same page

From Dev

Pencil 2.0.9 opens a new firefox window instead of the software itself

From Dev

Firefox opens new browser instance instead of using active one

From Dev

fancybox opens in new tab

From Dev

Javascript alert for deleting mysql data opens in new tab

From Dev

How to set up firefox so that a new tab opens next to the currently open tab?

From Dev

ctrl-alt-t opens new terminal window instead of new tab while gnome terminal is active window

From Dev

ctrl-alt-t opens new terminal window instead of new tab while gnome terminal is active window

From Dev

chrome debugger: clicking exception link in console opens file in new tab instead of cross-linking into source file

From Dev

Batch file opens Default Browser instead of Firefox

From Dev

Open pdf in new tab (FireFox and IE 8) using EXTJS, JAVASCRIPT

From Dev

Selenium Webdriver Java can't handle javascript:void(0), opens new tab

From Dev

Pressing <Down> opens a new tab in Konsole

From Dev

Selenium - Clicking a link opens up a new tab

From Dev

jQuery .load() opens script in a new tab

From Dev

Mailto link in chrome opens new tab

From Dev

Pressing <Down> opens a new tab in Konsole

From Dev

Key combo that opens entered url in new tab

From Dev

Google Calendar Shurtcut Opens Additional "New" Tab

From Dev

Selenium opens new tab after SendKeys

From Dev

Microsoft Edge browser thumbnail tab opens by default instead of miniature tab

From Dev

In a Firefox restartless add-on, how do I run code when a new window opens (listen for window open)?

From Dev

How can I find Firefox code that opens "Add new Bookmark" window?

From Dev

Close firefox tab with Javascript

From Dev

Firefox addon: new tab extension

Related Related

  1. 1

    Firefox opens new window instead of link

  2. 2

    How to make this HTML code opens in a new tab?

  3. 3

    Why javascript triggered submit form (method get, target blank) opens popup instead new tab?

  4. 4

    Yahoo Search opens when I open a new tab in Firefox

  5. 5

    angular tab selection opens new page instead of open in the same page

  6. 6

    Pencil 2.0.9 opens a new firefox window instead of the software itself

  7. 7

    Firefox opens new browser instance instead of using active one

  8. 8

    fancybox opens in new tab

  9. 9

    Javascript alert for deleting mysql data opens in new tab

  10. 10

    How to set up firefox so that a new tab opens next to the currently open tab?

  11. 11

    ctrl-alt-t opens new terminal window instead of new tab while gnome terminal is active window

  12. 12

    ctrl-alt-t opens new terminal window instead of new tab while gnome terminal is active window

  13. 13

    chrome debugger: clicking exception link in console opens file in new tab instead of cross-linking into source file

  14. 14

    Batch file opens Default Browser instead of Firefox

  15. 15

    Open pdf in new tab (FireFox and IE 8) using EXTJS, JAVASCRIPT

  16. 16

    Selenium Webdriver Java can't handle javascript:void(0), opens new tab

  17. 17

    Pressing <Down> opens a new tab in Konsole

  18. 18

    Selenium - Clicking a link opens up a new tab

  19. 19

    jQuery .load() opens script in a new tab

  20. 20

    Mailto link in chrome opens new tab

  21. 21

    Pressing <Down> opens a new tab in Konsole

  22. 22

    Key combo that opens entered url in new tab

  23. 23

    Google Calendar Shurtcut Opens Additional "New" Tab

  24. 24

    Selenium opens new tab after SendKeys

  25. 25

    Microsoft Edge browser thumbnail tab opens by default instead of miniature tab

  26. 26

    In a Firefox restartless add-on, how do I run code when a new window opens (listen for window open)?

  27. 27

    How can I find Firefox code that opens "Add new Bookmark" window?

  28. 28

    Close firefox tab with Javascript

  29. 29

    Firefox addon: new tab extension

HotTag

Archive