Script Categories

Buttons Effects >>> Random link.

Check out this random link generator! It randomly selects a URL from a pre-determined list and sends the user there!

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function go_to(url) {
function rand_link() {
var a;
a = 1+Math.round(Math.random()*3);   // a = random number between 1-3
if (a==1) go_to("");
(a==2) go_to("../JSFactory_Pro.htm");
if (a==3) go_to("../JSFactory.htm");
else go_to("../JSFactory_Pro.htm");
// End -->
<FORM NAME="myForm">
TYPE="button" NAME="myButton" VALUE="Random link"

Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.

Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).