Advertisement
BrU32

JQ Post Request On Any URL SRC

Oct 28th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
  2. <script>
  3. $(document).ready(function(){
  4. $("button").click(function(){
  5. var URL=prompt('Enter URL:');
  6. $.post(""+URL, function(requestData,e){
  7. document.writeln("Data: " + requestData + "\nStatus: "+e + status);
  8. });
  9. });
  10. });
  11. </script>
  12. </head>
  13. <body>
  14. <button>POST Request</button>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement