Is the elements of the main file is accessible by the frame?
For example, i have button in my frame. onclick button, a customized dialog should pop up.
If so, can you give me some tutorial or links on how to do it? Thanks!
MAIN FILE AND FRAMES
Page 1 of 12 Replies - 245 Views - Last Post: 10 February 2013 - 08:33 AM
Replies To: MAIN FILE AND FRAMES
#2
Re: MAIN FILE AND FRAMES
Posted 10 February 2013 - 07:50 AM
I assume (hope!) that you are referring to an iframe rather than a frame? Anyway, parent references the parent window for the frame.
MDN
So then you might use parent.document.getElementById("someid");
MDN
So then you might use parent.document.getElementById("someid");
This post has been edited by andrewsw: 10 February 2013 - 07:57 AM
#3
Re: MAIN FILE AND FRAMES
Posted 10 February 2013 - 08:33 AM
Thanks for the reply. Yes sir. I am referring to iframe. I'll try it in my code!
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote



|