where is error?
<iframe src="jquerytabs/index.html" name="bulten" scrolling="auto" id="ifr2" frameborder="0" style="width:100%;" marginheight="0" marginwidth="7" height="288" ></iframe>
<script type="text/javascript">
document.write(parent.document.getElementById('ifr2').src) --->error is here but how can I correct?
</script>
The error means that
parent.document.getElementById('ifr2')is returningnull. Why are you usingparent.documentinstead of justdocument?Does your script really come after the
<iframe>, as it does in the code you posted? Is it possible that you have more than one element with the same “id” value (“ifr2”) (probably not, but it’s worth checking)?