Hot to create a Button that redirects to to sites.????

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Maluendaster
Forum Contributor
Posts: 124
Joined: Fri Feb 25, 2005 1:14 pm

Hot to create a Button that redirects to to sites.????

Post by Maluendaster »

I want to create a download button that it actually opens two sites. The site I'm developing os for downloading prgrams, games, etc (no illegal just freeware)

the two sites that should be opened with just 1 download button will be the prorgam / game etc, that the user is downloading , and the other is advertising.... anyone knows how to do it??

PS ; i had this script, don't rememeber if it was in PHP or JV the code is short.
User avatar
harrisonad
Forum Contributor
Posts: 288
Joined: Fri Oct 15, 2004 4:58 am
Location: Philippines
Contact:

Post by harrisonad »

show the script
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

Post by Skara »

my javascript is rusty, but....

Code: Select all

function loadwindows(loc1,loc2) {
    window.open(loc1); //set these up how you need...
    window.open(loc2);
}

Code: Select all

<input type='button' value='Wahoo' onclick='loadwindows("http://example.com/","http://example.org");' />
Post Reply