Referring to an object in another frame

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Is there a way to refer to (and later) an object in another frame
i.e. a function in JS is called from frame3 but its purpose is to alter an
object in frame2

I tried calling this function from frame3:
function changeit(heading){
top.frames['heading'].getElementById("banner").innerHTML = heading
}
where 'heading' is the name of frame2 and "banner" is the id of an element
in frame2

It didn't work
--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html


.