faqts : Computers : Programming : Languages : JavaScript : Frames

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

20 of 35 people (57%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

How can i script object in one frame from another object in another frame please give me the version of IE and Netscape that support that ver of JavS

Apr 11th, 2001 08:42
Abdulah Thsmoed, Qureshi Ghazanfar,


Lets say you object is this one: 

<div id="dataRegion">Data...</div>

You can reference its data portion like this: 

alert(parent.frames.<the frame the object is in>.document.getElementById
('dataRegion').innerHTML);

Versions: IE5+, NS6+
This is guaranteed to work!!!