JavaScript - IFRAME Forms IE/NS

I had a hard time finding the correct syntax for submitting a form that exists in the source page of an IFRAME. Here is the syntax for both IE and newly added support for NS 6.2.

I had a hard time finding the correct syntax for submitting a form that exists in the source page of an IFRAME. Here is the syntax for both IE and newly added support for NS 6.2.

If need a few more examples of parent page to iframe and iframe to parent page communication, check this TreeView example out:

http://www.eggheadcafe.com/articles/20020812.asp

NS 6.2 +

window.frames['ifMyIFrame'].document.frmSubmit.submit();

IE 5.0 +

document.ifMyIFrame.frmSubmit.submit();


Submission Date:  9/23/2005 3:00:45 PM
Submitted By:  Robbe Morris
My Home Page:  http://www.robbemorris.com   

By Robbe Morris   Popularity  (596 Views)
Picture
Biography - Robbe Morris
Robbe has been a Microsoft MVP in C# since 2004. He is also the co-founder of NullSkull.com which provides .NET articles, book reviews, software reviews, and software download and purchase advice.  Robbe also loves to scuba dive and go deep sea fishing in the Florida Keys or off the coast of Daytona Beach. Microsoft MVP