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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

java script value in html form

Status
Not open for further replies.

abyinsydney

Programmer
Feb 17, 2004
99
AU
I have th values stored in java script how can i display these values in html form


document.actionhistorycif.aby14.value=winobj.document.trans abyh14.value;

document.actionhistorycif.aby8.value=winobj.document.trans.abyh8.value;

 
Code:
<html>
<body>
  <form name="aForm" action="whatever">
    <input type="text" name="text1" id="text1" value="not set">
  </form>
</body>

 <script langauge="javascript">
   var abc = '123';
   document.forms.aForm.text1.value = abc;
 </script>

</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top