Link to two webpages simultaneously
9 posts
Page 1 of 1
Hi. Does anyone know if there is a way to make it so if someone clicks on a link, two new windows pop up with different web pages? Thanks!
You want it to open in your own program or a browser in your system like chrome or firefox etc..?
In html code, using the <a> tag
Do you mean something like:
Google
or
Something like:
Code: Select all
That will show:<a href="http://www.google.com/">Google</a>
or
Something like:
Code: Select all
It will look the same, but it will not be.<a href="http://www.google.com/" target="_blank">Google</a>
i want a link that goes to two webpages when clicked, not just one.
Try:
Code: Select all
<script>
function popups()
{
window.open("about:site1", "win1");
window.open("about:site2", "win2");
}
</script>
<p><a href="#" onclick="popups()">link</a></p>
i have mine working in html if you need that lol


Code: Select all
This will open 2 new windows with these links and keeping the old window with the link cooll;. This ones in html if you need it <a href="" target="_blank" onclick="window.open('http://www.google.com');window.open('http://www.google.com')">Click Me</a>

Last edited by Livengood on Mon Jan 10, 2011 3:45 am, edited 1 time in total.
9 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023