Reputation: 3
I am trying to open some url in new tabs, I want that every time I click on some button it will open up a new tab different tab. I am using window.open for this and this is opening my url in one single new tab..
My code is
window.open("myurl.com", "target=_blank"); "return false;";
Please help
Upvotes: 0
Views: 142
Reputation: 825
Another ugly way using jQuery:
$('<a href="myurl.com" target="_blank"></a>')[0].click()
Upvotes: 0