![]() |
|
[WEB] Question - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Programmers Gateway (https://lckb.dev/forum/forumdisplay.php?fid=196) +---- Forum: Coders Talk (https://lckb.dev/forum/forumdisplay.php?fid=192) +---- Thread: [WEB] Question (/showthread.php?tid=1064) |
- Wrong - 08-31-2012 could someone tell me how open 3 new windows in the browser with different url when someone cliks on an image please? Regards - Blackfire - 08-31-2012 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> - Wizatek - 08-31-2012 <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 - Wrong - 08-31-2012 Thanks, worked - Wrong - 09-03-2012 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? - Blackfire - 09-03-2012 <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 |