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.
Hot to create a Button that redirects to to sites.????
Moderator: General Moderators
-
Maluendaster
- Forum Contributor
- Posts: 124
- Joined: Fri Feb 25, 2005 1:14 pm
- harrisonad
- Forum Contributor
- Posts: 288
- Joined: Fri Oct 15, 2004 4:58 am
- Location: Philippines
- Contact:
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");' />