Jump to content

how to open 2 links with same click?


mobilekid

Recommended Posts

untested example

<a onclick="javascript:OpenBoth('http://domain1.com','http://domain1.com');">click me</a>

 

function OpenBoth(url1,url2)
{
myRef1 = window.open(url1,'mywin1',
'left=20,top=20,width=500,height=500');
myRef2 = window.open(url2,'mywin2',
'left=40,top=40,width=500,height=500');
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.