How can I open multiple links using a single anchor tag

后端 未结 1 621
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-28 08:13

So here\'s a simple but interesting question, how can I open multiple links using single element?

Using this only opens the first href

相关标签:
1条回答
  • 2020-11-28 08:48

    You can certainly try this

    Demo

    <a href="http://www.microsoft.com" target="_blank" onclick="window.open('http://www.google.com'); window.open('http://www.yahoo.com');">Click Here</a>
    
    0 讨论(0)
提交回复
热议问题