replace
console.log(page.content);
from
console.log(page.frameContent);
Should return the contents of the phantom frames of the frame.
If the iframe is from another domain, you may need to add the -web-security = no parameter, for example:
phantomjs --web-security=no myscript.js
, , xMythicx, . Javascript . iframe , , . , , , .