HTML Help Forum HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

how to get handle to a frame's data
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum -> Javascript
View previous topic :: View next topic  
Author Message
Anil_DEI



Joined: 01 Sep 2009
Posts: 1

Posted: Tue Sep 01, 2009 5:42 am     how to get handle to a frame's data  

I have an HTML page consisting of 4 frames. Using
top.document.getElementsByTagName('frame')[0] I can get the handle to the first frame.

However, what I really need to get is the handle to an applet in the frame obtained. I am not able to get the contents of the frame and thus cannot get the applet handle too.

The code is like this:
onClick="myid=top.document.getElementsByTagName('frame')[0]; window.alert(myid)"

Here I have the frame in myid. The alert shows so.

Now I wanted to do something like:
myid.document.getElementById('myApplet')

onClick="myid=top.document.getElementsByTagName('frame')[0]; myAppId=myid.document.getElementById('myApplet')"

This does not work.

Question is- how can I obtain the applet's handle from its container frame's handle? I am on firefox.

ANIL DEI
 
 
DARFUR
HOSTING / DESIGN

       HTML Help Forum -> Javascript
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group