473,415 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,415 software developers and data experts.

Open new browser - multiple links per page - how?

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
13 3284
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

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
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
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
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
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
ok one second ill be right back with your answer just give me about 15-30min max. k?
Jul 6 '06 #8
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
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
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
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
"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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Nancy | last post by:
I recently completed a web page, "Browser Tests of Entities in 2004". http://www.santagata.us/characters/CharacterEntities.html It shows those characters that work in all of the version 5.2+...
10
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
26
by: Howard Brazee | last post by:
I would like to click on a URL of a html document that will open several URLs at once for me. Does someone have an example of a html document that will do this?
17
by: DaveC | last post by:
Hi, If I set up a link to take my viewers away from my site, how can I force their browser to open a second copy? Idea, of course, is to bring viewers back into my site when they close the 2nd...
18
by: len.hartley | last post by:
Hi, I am trying to pop-up a window when the user clicks on an image. The problem is that when the user clicks on the image and the window pops up OK, but the window underneath also proceeds to...
1
by: dnes | last post by:
Open Multiple New Browser Windows from ASP.NET I'm having trouble figuring out how to open multiple new browser windows (each one displaying something different). As you can see from the code...
6
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I am thinking about doing this since I got several cases that some of our internal users open more than one browser at the same time from our server. When one of the transactions was not...
6
by: mistral | last post by:
what is correct way open a PDF document in new window use hyperlink? I want show images thumbnails linked with PDF files, when click on thumbnail, PDF will be opened in new window. Some of PDF...
0
by: ronald.chis | last post by:
Iwebs v1.2 - Open Source Web-Publishing Platform for Bloggers and website builders available Now- (Sept 16-2008) With more updations iwebs version 1.2 can be downloaded here -...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.