I have a local webpage:
<html><head>
<script src="jquery.min.js"></script>
</head><body>
<object id="oid" type="text/html" data="http://some-site" width="800px" height="600px" style="overflow:auto;border:5px ridge blue">
testing
</object>
<script>
$(document).ready(function(){
$('object').ready(function() {
setTimeout(function(){
page = $('object').html();
alert(page);
}, 3000);
});
});
</script>
</body></html>
The Alert function is viewing "testing" and not the HTML content loaded into the Object-tag. I need it to display the html from the loaded content. What am I doing wrong?