Link to home
Start Free TrialLog in
Avatar of clefairy_in_b5
clefairy_in_b5

asked on

what's wrong in the onclick?

<a onclick='window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=12167.10000007&type=3&subid=0")' onclick='window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=14931.10000001&type=3&subid=0")' onclick='window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=14203.10000002&type=3&subid=0")' onclick='window.open("")' onclick='window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=12167.10000007&type=3&subid=0")' onclick='window.open("index2.htm")' ><font size=8>ENTER</font></a>

what's worng with this? this should open 5 browsers.
or...
if you can suggest a script that opens the 4 adverstise browses when you enter to the site it will be more efficent.
ASKER CERTIFIED SOLUTION
Avatar of maneshr
maneshr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jbirk
jbirk

To open them when the site is entered add this to the header of your document (between the <HEAD> and </HEAD> tags:
<SCRIPT language="JavaScript">
<!--
window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=12167.10000007&type=3&subid=0");
window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=14931.10000001&type=3&subid=0");
window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=14203.10000002&type=3&subid=0");
window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=12167.10000007&type=3&subid=0");
// -->
</SCRIPT>

The above will open the pages while your page is still loading.  If you want it to happen right AFTER your page is loaded, then do it like this:
<SCRIPT language="JavaScript">
<!--
function launch() {
window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=12167.10000007&type=3&subid=0");
window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=14931.10000001&type=3&subid=0");
window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=14203.10000002&type=3&subid=0");
window.open("http://click.linksynergy.com/fs-bin/stat?id=YcfcKmr6Sbg&offerid=12167.10000007&type=3&subid=0");
}
// -->
</SCRIPT>

Then in the body tag:
<BODY onload="launch()">

Otherwise, using the url click method, maneshr's provided the solution for you above.
-Josh
Avatar of clefairy_in_b5

ASKER

hmm....
i'll yru them both and see whice one is more convient.
How is it coming?
Comment accepted as answer