Click to See Complete Forum and Search --> : Help with iframes


oceans11
02-09-2004, 08:33 PM
<html>
<body>

<script type="text/javascript">
<!--
document.write('<iframe id="mltop" src="http://yahoo.com" width="0" height="0"></iframe>')


var TD = mltop.document.getElementsByTagName("td")

//-->
</script>
</body>
</html>


can anyone please tell me what I am doing wrong in this code...it gives an error message 'access denied'..im all stuffed..help plz

oceans11
02-09-2004, 09:31 PM
Hello help plz...

rhsunderground
02-09-2004, 09:54 PM
what are you trying to do with this code?

fredmv
02-09-2004, 10:01 PM
Welcome to the forums.

It's because you're trying to script across domains. The same origin policy (http://www.mozilla.org/projects/security/components/same-origin.html) does not allow this, hence the "access denied" exception in which was thrown.

oceans11
02-10-2004, 06:07 AM
well I have a proboard forum...and I want to show the latest post line in another webpage of mine..how can I do this...