index.html
is:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Demo</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script>
$( document ).ready(function() {
var obj = $.get('tmp.html');
console.log(obj);
console.log('obj.status:'+obj.status);
});
</script>
</head>
<body>
<a href="http://jquery.com/">jQuery</a>
</body>
</html>
Output in console
is:
Question is how do I access that status
code which is to 200
, the way I am doing it shows it's undefined though it's 200