Click to See Complete Forum and Search --> : Getting a link to open two pages
togmkn
07-12-2005, 10:24 PM
This may be a pretty simple question, but oh well ;)
I'm wondering, how would I get one link to open two different sites in two different windows? One could open in the same window, and the other be in a resource window, or both in separate windows/tabs, it doesn't really matter. I just need to be able to click on one link and get two pages to come up.
Thanks in advance!
Kravvitz
07-13-2005, 12:14 AM
<a href="http://www.example.org" onclick="window.open('http://www.google.com','newwin');">click me</a>
togmkn
07-16-2005, 08:27 PM
Thanks a million! :D
ppice
03-14-2008, 06:19 PM
I want to open multiple website instead of just two. tried to mopdify it but it doesn't work... Thanks in advance,
Ice
ray326
03-15-2008, 12:17 AM
You just add more window.open()s to the onclick sequence.
stroveman
03-15-2008, 01:27 AM
@Kravvitz: Oh my god! Thank you very much.
ufoen
06-14-2009, 03:16 PM
Hey, Im searching for the website number 1 to come up in a new window and website number 2 to open as a new tab in that window
rwbmusic
02-11-2010, 11:42 PM
How does one have a user click a Library link (.lbi) which opens a new window which is a frameset which then loads another url into a target frame?
I essentially have an online dictionary which specializes in music terminology. These terms are linked by means of a Library with .lbi type files. When the user clicks on the link a new window called music dictionary. It has 3 frames. There is a menu frame, a header frame and a data frame. The data frame is where content is presented. There are about 26 documents that can be imported into that data frame. Every term in the dictionary has a named anchor which is specifically what the Library entries refer to.
Within the same site I present a series of articles which use terminology which is linked via the Library entries.
When the user is reading an article and clicks on linked terminology, I wish to open the dictionary window and then immediately after that window opens the data frame loads the correct page and then scrolls the browser to the correct anchor. I use Dreamweaver and tried to do this with behaviors which apparently is disabled for .lbi files.
I am sure there is a much more elegant way to accomplish what I am trying to do. Any suggestions? Any pointers are appreciated.
imrankhan
03-02-2010, 04:07 AM
open two different links images in one window on one click
For example
there are two different images link but i want to open both the images in same window on one click i have tried open two different links or images on one click but they opened it in other window i want to open the both the images or links in same window or new window but they must open in one window
what i m doing to open links in two other windows on one click
<a href="tenders/<?php echo $arr[$i]['image_location']?>" onclick="window.open('correction/<?php echo $arr[$i]['image_correction']?>','newwin');"><img src="download_icon.gif" border="0" ALT="<?php echo $arr[$i]['organization_name'] ?>"></a></div></td>
theteamplayer
11-29-2010, 08:06 AM
Thanks for the advice, bit it didn't work for me.
So I found this, which works a treat:
<html>
<head>
<script type="text/javascript">
function open_win() {
window.open("http://www.java2s.com/")
window.open("http://www.facebook.com/")
window.open("http://www.google.com/")
window.open("http://www.yourcorset.com/")
window.open("http://www.mythongoftheday.com/")
window.open("http://www.boo.by/")
window.open("http://www.searchandsocialmediamarketing.co.uk/")
window.open("http://www.posterous.com/")
}
</script>
</head>
<body>
<form>
<input type=button value="Open Windows" onclick="open_win()">
</form>
</body>
</html>
sohguanh
11-29-2010, 08:33 PM
I think open multiple windows will annoy a lot of users. It is like spamming the users where an innocent click pop up so many windows and most of the times, user spent time closing them one by one :)
theteamplayer
11-30-2010, 06:49 AM
I think open multiple windows will annoy a lot of users. It is like spamming the users where an innocent click pop up so many windows and most of the times, user spent time closing them one by one :)
I agree fully. This would be like spamming the user and I would never do that.
I needed it for me. To test something. I need to open 23 social media sites every day for a few days to make sure my post was being formatted correctly. This was just a time saving thing, and I like playing with code to see what's possible.
After all, code is poetry
stefanraj
12-01-2010, 06:37 PM
Hello Kravvitz,
Amazing..., thanks a lot this useful tip.
cva03
05-11-2011, 02:16 AM
Hi all,
I have one different question :) i need a command which will open a multiple website while typing the domain name or clicking the domain name and later it should automatically close the opened pages after loading the pages.
For eg:
I am typing www.google.com, so google page will load and in the same time facebook and yahoo will also open and after 10 seconds it should close the page of facebook and yahoo automatically.
Is it possible?
Thanks