Advertisement
cesar_melendez

Example WebPage Of Link Generator

Nov 16th, 2013
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Untitled Document</title>
  6. </head>
  7.  
  8. <body>
  9.  
  10.  
  11. <script>
  12.  
  13.  
  14. //Add as many links as needed.
  15. var randomlinks=new Array()
  16.  
  17. randomlinks[0]="http://form.jotform.co/form/33192917670863"
  18. randomlinks[1]="http://jotformpro.com/form/33193099272964"
  19. randomlinks[2]="http://jotformpro.com/form/33193046578965"
  20. randomlinks[3]="http://jotformpro.com/form/33193270124951"
  21.  
  22. function randomlink(){
  23. window.location=randomlinks[Math.floor(Math.random()*randomlinks.length)]
  24. }
  25. //-->
  26. </script>
  27. <form>
  28. <p><input type="button" name="B1" value="Perform Test" onclick="randomlink()"></p> </form>
  29.  
  30. <!--Uncomment below to use a regular text link instead
  31. <a href="javascript:randomlink()">Perform Test</a>
  32. -->
  33.  
  34. </body>
  35. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement