Guest User

Untitled

a guest
May 25th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. <html maintainscrollpositiononpostback="true">
  2. <head>
  3. <script>
  4. function shorten_URL()
  5. {
  6. /*var xmlhttp;
  7. xmlhttp=new XMLHttpRequest();
  8. xmlhttp.onreadystatechange=function()
  9. {
  10. if (xmlhttp.readyState==4 && xmlhttp.status==200)
  11. {
  12. document.getElementById("short_url").value=xmlhttp.responseText;
  13. }
  14. }
  15.  
  16. xmlhttp.open("POST","index.html?t="+ Math.random()+"&url="+f_long_url,true)
  17. xmlhttp.send();*/
  18. document.getElementById("short_url").innerHTML="yaA"
  19. //return "yay"
  20.  
  21. }
  22. </script>
  23.  
  24. </head>
  25. <body>
  26. <div id="hiddenDiv" style="display:none;visible:hidden;">
  27. <iframe src="hidden.html" height="1" width="1" border="0" scrolling="no" name="hiddenFrame" id="hiddenFrame">
  28. </iframe>
  29. </div>
  30.  
  31. <noscript><p><span style="color: #ff0000;">Javascript is disabled in your browser. It is required to view this page. Please enable it and refresh the page.</span></p></noscript>
  32.  
  33.  
  34. <form name="long_url_form2">
  35. URL2: <input name="long_url" type="text" />
  36. <button type="button" onclick="shorten_URL()">Shorten URL2
  37. </button>
  38. </form>
  39.  
  40.  
  41.  
  42. <p id="short_url"></p>
  43.  
  44.  
  45.  
  46. </body>
  47.  
  48. </html>
Add Comment
Please, Sign In to add comment