javascript detect if frame is called

Silver-0-surfer

Well-Known Member
Joined
Jan 5, 2008
Messages
317
Reaction score
7
Location
CPT
Hi All.

Is it possible to write a piece of javascript that will check if a frame is "created" on a webpage.

I know you can use window.parent.frames.length but as far as I can see that only works on the frame itself not on the page that called/created(?) it.

can this be done?
 
You want know if a frame has been created in a window other than the one you're coding in? Assuming you opened the window via script, you should have a reference to it and therefore should be able to access it's document object and all the document's children including the iframe.
 
Top
Sign up to the MyBroadband newsletter
X