Link to home
Start Free TrialLog in
Avatar of maqskywalker
maqskywalker

asked on

Google Chrome Open link in new tab url

I have this JavaScript hyperlink example:

https://jsfiddle.net/m1crp6ry/1/

The hyperlinks work fine if I click on them.

I'm using Google Chrome web browser
But, if I click the right button on my mouse over one of the links, the chrome menu opens, and it looks like this

User generated image
if I then select Open link in new tab a new tab opens but it's just blank.
User generated image
How do I fix my example, so if I select Open link in new tab,  the new tab opens with the url I selected in it.
SOLUTION
Avatar of zvitam
zvitam
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Joe Ciancio
Joe Ciancio

I'm curious to know why you need the JavaScript? If you add the target="_blank" attribute to your a tag, then simply clicking on the link will open the url in a new tab.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial