Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>This is a test index page</title>
- <script src="https://code.jquery.com/jquery-1.11.3.min.js" type="text/javascript"></script>
- </head>
- <body>
- <h1>This is a test!!!</h1>
- <h3>I'm a little title</h3>
- <a href="#" onclick="sendData()">Send Data</a>
- <script>
- var obj = {"test":"a testing message"};
- function sendData(){
- $.post('/api/Users', obj, function(data){
- console.log(data);
- });
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement