Random link : Random : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » Random »

 

Random link




<html>
<body>

<script type="text/javascript">
var r=Math.random()
if (r>0.5){
    document.write("<a href='http://www.navioo.com'>navioo</a>")
}else{
    document.write("<a href='http://www.google.ca'>Google!</a>")
}
</script>

</body>
</html>


           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Language Basics
» Random