Debt Consolidation - Find services - Debt Consolidation - Jigsaw Puzzles - Payday Loans

PDA

View Full Version : Help...


axxo08
Aug 18th 2008, 10:24 am
This is a script which directs to random pages.I need those random pages to open in a new window.Please help me

<SCRIPT LANGUAGE="JavaScript">



<!-- Begin
function go_to(url) {
window.location=url;
}
function rand_link() {
var a;
a = 1+Math.round(Math.random()*3); // a = random number between 1-3
if (a==1) go_to("http://bgeffects.javascriptsource.com");
if (a==2) go_to("http://clocks.javascriptsource.com");
if (a==3) go_to("http://games.javascriptsource.com");
}
// End -->
</SCRIPT>


<BODY>
<CENTER>
<FORM NAME="myForm">
<INPUT TYPE="button" NAME="myButton" VALUE="Random link"
onClick="rand_link()">
</FORM>
</CENTER>

Paris Holley
Aug 18th 2008, 11:08 am
window.open('http://myurl.com');