I have an iframe in my html page and I want to access some content from the page open in this iframe.
<table border="1" width="100%" height="100%"> <tr> <td id = "freebase_td"> <iframe id = "freebase_frame" src="http://www.freebase.com/view/en/angelina_jolie" width="100%" height="400px"></iframe> </td> </tr> </table>
In this web page source
<h1 id="page-title"> Angelina Jolie </h1>
I want to access the content in the h1 tag with the id "page-title" using javascript. Is it possible?
source share