say an HTML page (Page.htm) contains the following...
Now this
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.
IFRAME