View Full Version : access all tags inside iframe

09-07-2006, 07:48 AM
<script type="text/javascript">
function init(){
var nodes = window.frames.anIframe.document.links;
<BODY onLoad="init()">
<A HREF="javascript: void 0"
ONMOUSEOVER="window.frames.anIframe.location.href =
<IFRAME NAME="anIframe" SRC="http://www.FAQTs.com"

This is my code.
but it is giving an error of "access denied"
please tell me how to access content inside an iframe

09-07-2006, 07:54 AM
The code will work provided that the content of the iframe comes from the same domain as the main page. If it comes from a different domain then security mmakes it impossible for Javascript to reference the iframe and there is nothing you can do to change it.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum