Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
- <script>
- $(document).ready(function() {
- $("#testButton").click(function() {
- $.ajax({
- type:"head",
- url:"test2.html",
- success:function(data,textstatus,jqxhr) {
- console.log(data);
- var lastmod = jqxhr.getResponseHeader("Last-Modified");
- console.log(lastmod);
- }
- });
- });
- });
- </script>
- </head>
- <body>
- <button id="testButton">Test</button>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement