View Full Version : Accessing Frame parent objects
Uranium-235
02-01-2003, 10:18 PM
I know how to access other frames (parent.framename.whatever)
but how can I access objects inside the frame document (with <frame and <frameset)
I tried using just parent but it didn't work. Help plz
kdjoergensen
02-01-2003, 11:02 PM
Framesets (parents) will have no (valid) objects beside other frames. It is the same as a 'window' where the objects are inside the 'document' object.
Uranium-235
02-01-2003, 11:33 PM
Actually...that's not quite true. I fixed it. It's parent.document
I was able to access the main document title via parent.document.title from another frame.
:)
one of the things that were throwing me off was the main document HAS to have a <title> inside it or else it would give me an 'Unspecified error'
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.