Random URL
<HTML> <HEAD> <SCRIPT language="JavaScript"> var rand_url= new Array() rand_url[0]="http://www.java2s.com"; rand_url[1]="http://www.google.com"; rand_url[2]="http://www.msn.com"; var rand_num= Math.floor(Math.random()*2); </SCRIPT> </HEAD> <BODY> <SCRIPT language="JavaScript"> document.write("<A HREF='"+rand_url[rand_num]+"'>"+rand_url[rand_num]+"</A>"); </SCRIPT> </BODY> </HTML>