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.
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.
Comments