[WEB] Question
#1

could someone tell me how open 3 new windows in the browser with different url when someone cliks on an image please?

 

Regards

#2

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>

#3


<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

#4
Thanks, worked

#5


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?

#6


<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



Forum Jump:


Users browsing this thread: 1 Guest(s)