By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,833 Members | 2,074 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,833 IT Pros & Developers. It's quick & easy.

Open new browser - multiple links per page - how?

P: n/a
I am in the final moments of designing a new website. One of the pages
(http://www.auditionfactory.com/samples.php) has four links to show
sample work. I would like these links to open new browser windows when
clicked. I have found scripts that will allow one to open, and a few
that claim to all multiples to be opened, but so far nothing that will
allow a user to open multiple new windows as they click to see new
samples.

Does anyone know of a way to accomplish this.

Thanks,
Geoff Fox
Connecticut
USA

Jul 6 '06 #1
Share this Question
Share on Google+
13 Replies


P: 11
I am in the final moments of designing a new website. One of the pages
(http://www.auditionfactory.com/samples.php) has four links to show
sample work. I would like these links to open new browser windows when
clicked. I have found scripts that will allow one to open, and a few
that claim to all multiples to be opened, but so far nothing that will
allow a user to open multiple new windows as they click to see new
samples.

Does anyone know of a way to accomplish this.

Thanks,
Geoff Fox
Connecticut
USA
ok i found a way. i took this line from ur site and tweaked it.
<ul>
<li><a href="http://www.tonyterzi.com" target="_blank">Tony Terzi</a><br>
<li><a href="http://www.marcrobbins.info" target="_blank">Marc Robbins</a><br>
<li><a href="http://www.auditionfactory.com/Kala_Rama" target="_blank">Kala Rama</a><br>
<li><a href="http://www.geofftv.com" target="_blank">Geoff Fox</a><br><br><br>
</div>
</div>

all that you forgot was target="_blank" inside ur tag so just copy and past that into it.

hope this helps. tell me if it doesnt because i did test it and it seemed to work ok.

and P.S. this is more HTML than javascript
Jul 6 '06 #2

P: n/a

Geoff Fox wrote:
I am in the final moments of designing a new website. One of the pages
(http://www.auditionfactory.com/samples.php) has four links to show
sample work. I would like these links to open new browser windows when
clicked. I have found scripts that will allow one to open, and a few
that claim to all multiples to be opened, but so far nothing that will
allow a user to open multiple new windows as they click to see new
samples.

Does anyone know of a way to accomplish this.

Thanks,
Geoff Fox
Connecticut
USA

<a href="http://www.tonyterzi.com" target=_blank>Tony Terzi</a>
try this...

Jul 6 '06 #3

P: 11
yes that does work also but " " are just the way i type it as habbit because of how i was told how to long ago. but ya man wat eva floats ur boat. hey and nice site i like the layout.
Jul 6 '06 #4

P: n/a
target=_blank>

I think this just opens the page in the existing browser window. In any
case "target" has been deprecated so the code might not validate. Hence
the need to use Javascript, right?
mertas wrote:
Geoff Fox wrote:
I am in the final moments of designing a new website. One of the pages
(http://www.auditionfactory.com/samples.php) has four links to show
sample work. I would like these links to open new browser windows when
clicked. I have found scripts that will allow one to open, and a few
that claim to all multiples to be opened, but so far nothing that will
allow a user to open multiple new windows as they click to see new
samples.

Does anyone know of a way to accomplish this.

Thanks,
Geoff Fox
Connecticut
USA


<a href="http://www.tonyterzi.com" target=_blank>Tony Terzi</a>
try this...
Jul 6 '06 #5

P: 11
not really because it should validate and if it doesnt try it in a few web brosers and see if it works and no dude that really doesnt call for javascript to be used in this case, but if you so wish you can, i could probibly dig one up for you but it may take me a minite or two to dig through my javascript book just give the word.
O and dude no with
<a href="http://www.tonyterzi.com" target=_blank>Tony Terzi</a>
it opens in new browser window
hence target=_blank
Jul 6 '06 #6

P: n/a
Yes, that's my understanding. It's got to be in Javascript.

The many Javascript solutions I've found only work for one new browser
window being spawned. So, if you click on one link, you can't click on
the others until that first link's 'new' browser is closed.

I'm still searching for a solution. Any help gratefully appreciated.

All the best,
Geoff Fox

Jul 6 '06 #7

P: 11
ok one second ill be right back with your answer just give me about 15-30min max. k?
Jul 6 '06 #8

P: n/a
Geoff Fox wrote on 06 jul 2006 in comp.lang.javascript:
Yes, that's my understanding. It's got to be in Javascript.
Please quote what you are replying to. If you want to post a followup via
groups.google.com, don't use the "Reply" link at the bottom of the article.
Click on "show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers.
<http://www.safalra.com/special/googlegroupsreply/>
>
The many Javascript solutions I've found only work for one new browser
window being spawned. So, if you click on one link, you can't click on
the others until that first link's 'new' browser is closed.
<div
onclick=
'window.open("a.html","_blank","");'+
'window.open("b.html","_blank","");'+
'window.open("c.html","_blank","");'+
'window.open("d.html","_blank","");'+
'window.open("e.html","_blank","");'>
Open 5 new windows by one click here
</div>

not tested
I'm still searching for a solution. Any help gratefully appreciated.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 6 '06 #9

P: 11
Geoff Fox wrote on 06 jul 2006 in comp.lang.javascript:


Please quote what you are replying to. If you want to post a followup via
groups.google.com, don't use the "Reply" link at the bottom of the article.
Click on "show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers.
<http://www.safalra.com/special/googlegroupsreply/>


<div
onclick=
'window.open("a.html","_blank","");'+
'window.open("b.html","_blank","");'+
'window.open("c.html","_blank","");'+
'window.open("d.html","_blank","");'+
'window.open("e.html","_blank","");'>
Open 5 new windows by one click here
</div>

not tested


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

i think he wants them to open 1 at a time not all at ounce but i could be mistaken.... should i still look for my code about opening new window for one at a time with all links included?
Jul 6 '06 #10

P: n/a
Evertjan. said the following on 7/6/2006 4:07 PM:
Geoff Fox wrote on 06 jul 2006 in comp.lang.javascript:
<snip>
>The many Javascript solutions I've found only work for one new browser
window being spawned. So, if you click on one link, you can't click on
the others until that first link's 'new' browser is closed.

<div
onclick=
'window.open("a.html","_blank","");'+
'window.open("b.html","_blank","");'+
'window.open("c.html","_blank","");'+
'window.open("d.html","_blank","");'+
'window.open("e.html","_blank","");'>
Open 5 new windows by one click here
</div>

not tested
The + doesn't work in that code the way you think it would in anything
but IE.

Tested:

<div id="test" onclick='
window.open("a.html","_blank","");
window.open("b.html","_blank","");
window.open("c.html","_blank","");
window.open("d.html","_blank","");
window.open("e.html","_blank","");
'>
Open 5 new windows by one click here
</div>

IE: 5 new windows
FF: 5 new windows
Opera 9: 1 new window with 4 popups blocked.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jul 6 '06 #11

P: n/a
Thanks all. I appreciate the help, but this wasn't exactly what I
wanted to do. I apologize if I've described my problem incorrectly.

I want to be able to open new windows, one at a time, as my visitors
click individual links. In the Javascript I've tried, once the first
new window is open, no other new windows can be spawned. You have to
close the first spawned window, which is now hidden under the active
window you're trying to click on.
In all the solutions I've tried,
Randy Webb wrote:
Evertjan. said the following on 7/6/2006 4:07 PM:
Geoff Fox wrote on 06 jul 2006 in comp.lang.javascript:

<snip>
The many Javascript solutions I've found only work for one new browser
window being spawned. So, if you click on one link, you can't click on
the others until that first link's 'new' browser is closed.
<div
onclick=
'window.open("a.html","_blank","");'+
'window.open("b.html","_blank","");'+
'window.open("c.html","_blank","");'+
'window.open("d.html","_blank","");'+
'window.open("e.html","_blank","");'>
Open 5 new windows by one click here
</div>

not tested

The + doesn't work in that code the way you think it would in anything
but IE.

Tested:

<div id="test" onclick='
window.open("a.html","_blank","");
window.open("b.html","_blank","");
window.open("c.html","_blank","");
window.open("d.html","_blank","");
window.open("e.html","_blank","");
'>
Open 5 new windows by one click here
</div>

IE: 5 new windows
FF: 5 new windows
Opera 9: 1 new window with 4 popups blocked.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jul 6 '06 #12

P: n/a
"Geoff Fox" <ge*******@gmail.comwrote in news:1152221404.318582.225340
@j8g2000cwa.googlegroups.com:
I want to be able to open new windows, one at a time, as my visitors
click individual links. In the Javascript I've tried, once the first
new window is open, no other new windows can be spawned. You have to
close the first spawned window, which is now hidden under the active
window you're trying to click on.
This seems to do what you want. At least it works for me in FF and IE.

<button onclick="window.open('http://www.google.com/');">Google
</button>
<button onclick="window.open('http://www.yahoo.com/');">Yahoo
</button>
Jul 6 '06 #13

P: n/a
"Jungleman" <rh*****@junglephotos.comwrites:
target=_blank>

I think this just opens the page in the existing browser window.
That depends on the browser. In a tabbed browser, it most likely
opens a new tab. In, e.g., IE, it opens a new window.
Whether that counts as a "new browser", I'll leave for the philosophers
(I guess the best test of whether it's a new browser or a new window
in the same browser is to crash one and see if it takes the other one
down with it :).
In any case "target" has been deprecated so the code might not
validate.
It's not deprecated. It's a standard feature of HTML 4.01
Transitional, and any document using the appropriate DOCTYPE
should have no problem validating.
Hence the need to use Javascript, right?
I would question the need for a new window first. After that,
I'll question a design that requires Javascript.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 6 '06 #14

This discussion thread is closed

Replies have been disabled for this discussion.