[Javascript] Setting a Input field on another frame?

Rodney Myers rodney at aflyingstart.net
Mon May 14 04:21:27 CDT 2001


Suppose parent frameset has 2 frames called AAA and BBB
Script is in BBB.
Form in AAA

parent.AAA.document.FormName.InputName.value = ...
OR
top.AAA.document.FormName.InputName.value = ...
OR
top.frames[0].document.FormName.InputName.value = ...

As a general rule, once you can identify a window then in that window
there is document property which includes a forms array and in any form
there are elements which have properties such as value ... and there you
have it.

Window.document.formname.inputname

hth

Rodney


> Anthony wrote:
> 
> How do i set the value of a field on another frame?

-- 
Shop at ssistant Add-ons and Developer Workshops
http://www.aflyingstart.net/addons/

Enquiries regarding Shop at ssistant Classic training :
Call 01256 880770

Rodney Myers
Based in Oxford, England
Technical Director, Shop at ssistant eCommerce Solutions




More information about the Javascript mailing list