Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.js"></script>
- <title>TestBase</title>
- <script type='text/javascript'>//<![CDATA[
- $(window).load(function(){
- var links = [
- "http://vetteletters.nl",
- "http://todont.co",
- "http://planetx.nl/titles"
- ];
- $("#rnd_link").click(function(){
- window.open(links[Math.floor((Math.random()*3))]);
- });
- });//]]>
- </script>
- </head>
- <body>
- <button id="rnd_link">Random</button>
- </body>
- </html>
Add Comment
Please, Sign In to add comment