Forum Moderators: open

Message Too Old, No Replies

iFrame Question

How do you detect when an iFrame reloads?

         

Sekka

9:26 am on Mar 1, 2006 (gmt 0)

10+ Year Member



Hi.

I have 2 questions,

1) Is there a way to run a javascript function every time an iFrame loads a new page without placing any code within the child document?

2) This javascript function needs to check if a form exists within the child page that loads. How do I check if a form and a form field exists?

Don't ask why I need to do this, I just do, long story.

Thank you!

Rambo Tribble

2:18 am on Mar 2, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Iframes do support an onload event in many browsers, but it is notoriously flaky.