View Single Post
Old 04-05-2002, 12:09 AM  
747-th
Registered User
 
Join Date: Mar 2002
Posts: 45
Java script to change form fields in frame

Hi 4 all

Help, plz

When I want change text field in form I use this Java script construction:
-------------------------------------------------------------------------
document.myForm1.myText1.value ="This is new text";
-------------------------------------------------------------------------
it's ok on same window
so how to change text field in form which locate in other frame?

I think it must begin like this:
... win1 = window.open('xxx.htm','MainFrame');
what's next????
- win1.myForm1.myText1.value ="This is text";
- window.win1.myForm1.myText1.value ="This is text";
- document.win1.myForm1.myText1.value ="This is text";
????

anybody understood what I want?
if yes - help
747-th is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote