Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

call a new seperate window form field

Status
Not open for further replies.

hunt00

Technical User
Mar 6, 2005
79
0
0
US
How could i call/put value to a new seperate window form field?

for example, the new window form name="formNew", with an input field name="windowNew_input" id="windowNew_input".

On current window, using :
document.formNew.windowNew_input.value = "test";

this ends up with error
 
hunt00

What exactly do you mean? I am thinking you would like to fill in an input value using javascript. You can do this as long as the input type is not file. All you would need to do is this document.getElementById('windowNew_input').value='some text';. I would suggest you use a function for this. If you would like to append or add this to the form that is possible as well. Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top