Ali007 Ali007 - 1 year ago 84
ASP.NET (C#) Question

How to open multiple external URLs in one button click but not get blocked by browsers popup blocker?

How to open multiple external URLs in one button click but not get blocked by browsers popup blocker? [specially Chrome]

Answer Source

Write onclick event for any anchor tags with multiple windows.open for opening the links in new window/tab.

<a href="http://bloggersentral.blogspot.com/" target="_blank" onclick="window.open(&quot;http://www.tourism.gov.my/&quot;); window.open(&quot;http://www.tic.kelantan.gov.my/&quot;);">This anchor opens three links in a single click</a>

Above anchor will open three links in single click.you can write multiple window.open for same.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download