What I have so far is this:
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
alert($("p").html());
});
});
</script>
</head>
<body>
<button>Return the content of the p element</button>
<p>Test Text</p>
</body>
</html>
What this does is display the content of my page. But say I have another html file that looks like this:
<html>
<head>
</head>
<body>
<p>This is text</p>
</body>
</html>
How would I go about viewing that page's html?