Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
- <script>
- $(document).ready(function(){
- $("button").click(function(){
- var URL=prompt('Enter URL:');
- $.post(""+URL, function(requestData,e){
- document.writeln("Data: " + requestData + "\nStatus: "+e + status);
- });
- });
- });
- </script>
- </head>
- <body>
- <button>POST Request</button>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement