08-31-2012, 07:49 PM
could someone tell me how open 3 new windows in the browser with different url when someone cliks on an image please?
Regards
|
[WEB] Question
|
|
08-31-2012, 07:49 PM
could someone tell me how open 3 new windows in the browser with different url when someone cliks on an image please? Regards
08-31-2012, 07:52 PM
Here you go : <a href="http://google.com/" target="_blank" onclick="window.open("http://google.com/"); window.open("http://google.com/");">This anchor opens three links in a single click</a>
08-31-2012, 07:55 PM
<script> function OpenWindows(url1, url2, url3) { window.open(url1, 'window name); window.open(url2, 'window name); window.open(url3, 'window name); } </script> <a href="URL" onclick="OpenWindows('page1.html', 'page2.html', 'page3.html'">linktekst</a> something like that should work
08-31-2012, 08:38 PM
Thanks, worked
09-03-2012, 02:51 PM
Here you go : <a href="http://google.com/" target="_blank" onclick="window.open("http://google.com/"); window.open("http://google.com/");">This anchor opens three links in a single click</a> how would be this code to open just 2 windows?
09-03-2012, 03:05 PM
<a href="http://google.com/" target="_blank" onclick="window.open("http://google.com/");">This anchor opens two links in a single click</a> That works |
|
« Next Oldest | Next Newest »
|