Page 1 of 1

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

Posted: Wed Mar 21, 2007 6:06 pm
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.

Posted: Wed Mar 21, 2007 6:18 pm
by harrisonad
show the script

Posted: Wed Mar 21, 2007 8:01 pm
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");' />