Help? IFrame access?

R

Rocky Moore

I have a hidden input control in a form called in an IFrame which I need to
access from the page which contains the IFrame. Is there a method that can
access it which is browser compatible with the latest browser versions?

I tried:

alert(document.myIframe.MyForm.MyHiddenControl.value)

which works fine in IE, but does not in Mozilla.

Any Ideas?

Rocky Moore
www.GotTheAnswerToSpam.com
 
W

Whitecrest

I have a hidden input control in a form called in an IFrame which I need to
access from the page which contains the IFrame. Is there a method that can
access it which is browser compatible with the latest browser versions?

I tried:

alert(document.myIframe.MyForm.MyHiddenControl.value)

which works fine in IE, but does not in Mozilla.

Any Ideas?

Try something like frames["myFrame"].MyForm..... This is a common
question and if you search google for a combination of iframe access and
forms you will be rewarded with a lot of sample code
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,091
Messages
2,570,605
Members
47,225
Latest member
DarrinWhit

Latest Threads

Top