I have used the following code snippet in several pages. This is a copy and paste from a page that works to a new page that does not. The point of interest is the JavaScript that gets the iframe and its document. When I run this I get an error message saying "Access denied" on the line where I set myFrameDoc. What's up with this? This should be very simple.
Code:
<html>
<body>
<iframe id="myframe" src="[URL unfurl="true"]http://www.google.com"[/URL] width="100" height="100"></iframe>
<script language="javascript">
myFrame = document.frames["myframe"];
myFrameDoc = myFrame.document;
</script>
</body>
</html>