HTML5 reading Iframe body -
HTML5 reading Iframe body -
so need body code of iframe, in javascript or jquery or whatever communicate server. set iframe this:
<iframe src="http://localhost:9090" name="frame" id="frame"></iframe>
and displays http server sent fine, when effort body of website/http server using code:
var content=$("#frame").contents().find("body").html(); alert(content);
but returns nothing. ps using chrome
if iframe
pointing @ page not same domain page contains, same origin policy prohibit page reading dom of iframe
.
if have pressing need know contents of iframe
, utilize library curl
load same page on server side.
html5
Comments
Post a Comment