Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html maintainscrollpositiononpostback="true">
- <head>
- <script>
- function shorten_URL()
- {
- /*var xmlhttp;
- xmlhttp=new XMLHttpRequest();
- xmlhttp.onreadystatechange=function()
- {
- if (xmlhttp.readyState==4 && xmlhttp.status==200)
- {
- document.getElementById("short_url").value=xmlhttp.responseText;
- }
- }
- xmlhttp.open("POST","index.html?t="+ Math.random()+"&url="+f_long_url,true)
- xmlhttp.send();*/
- document.getElementById("short_url").innerHTML="yaA"
- //return "yay"
- }
- </script>
- </head>
- <body>
- <div id="hiddenDiv" style="display:none;visible:hidden;">
- <iframe src="hidden.html" height="1" width="1" border="0" scrolling="no" name="hiddenFrame" id="hiddenFrame">
- </iframe>
- </div>
- <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>
- <form name="long_url_form2">
- URL2: <input name="long_url" type="text" />
- <button type="button" onclick="shorten_URL()">Shorten URL2
- </button>
- </form>
- <p id="short_url"></p>
- </body>
- </html>
Add Comment
Please, Sign In to add comment