say an HTML page (Page.htm) contains the following...
Now this
This:
<iframe id="child_frame" src="http://" />
Should be:
<iframe name="child_frame" src="http://" />
The iframe attribute "id" should be changed to "name".
Your first syntax should work IF you're on the same doamin.
If the IFRAME
is loading a page from another domain then you won't be able to access it.