Is it possible?

Joined
5 Jul 2002
Messages
235
Is it possible to have a single link point to 2 seperate locations? (eg. click on 1 link and it opens 2 different windows... each on seperate pages)
Just a thought I had tonight.
 
Sure, with a little Javscript it's a small deal:
PHP:
<SCRIPT>
function openDouble(){
	window.open("page1.html","Window1","");
	window.open("page2.html","Window2","");
}
</SCRIPT>

<A HREF="javascript: openDouble()">Two links in one!</A>
Or something similar anyway. Hope it helps! :)

<edit>"java script" is supposed to be "Javascript" (one word). The code parser is a bit strange. ;)</edit>
 
works great... but why isn't it possible to make a double link with nested <a href> tags?
 
I don't think it is possible in a simple <a href> , but what you can do is link to a page on the server that will open 2 addresses ,that page will also be Java or PHP or ASP , so i think its just better to do it in Zedric's way.
 
Originally posted by cruiser78
why isn't it possible to make a double link with nested <a href> tags?
I don't think anyone thought it would be necessary or even usefull when they made the HTML specs. It was a while back you know. When pages where grey with plain text on them basically. :) So single targets only for the A-tag.
 
lol... that's true... i don't really need it now either neways... it was just a thought i had...
 
HA... me laughs at you :D

A v6 wouldn't stand a chance against that Z28... it'll break the tires free on dry pavement going straight... AND it's an auto so that's just from punching it, not from dropping the clutch (not that you'd have to in a Z28 with a manual neways).. and right now I've got a v6 camaro so I know what a v6 is like in a muscle car... it SUCKS.

your '99 'stang might stand a chance... if it's a v8 and not a 6.

by the way that car isn't mine... it was my mom's till she sold it... She was gonna give it to me for $4000 cdn but 3 days b4 I was gonna fly down her neighbor offered her $8000 so she sold it to him instead.
 
LOL :D

Serious OT you guys!
"My <censoured> is bigger than yoo-ours!"
"Na-ah!"

:D
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back