Monday, 27 February 2012

If else using web links

<html>
<body>
<script type="text/javascript">
var r=Math.random();
if (r>0.7)
{
document.write("<a href='http://www.google.com'>enjoy</a>");
}
else
{
document.write("<a href='http://latestall707.blogspot.com'>enjoy</a>");
}
</script>
</body>
</html>

No comments:

Post a Comment