HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 13th, 1999, 09:37 AM
Bucachacha
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Does anyone know how to output text to a textbox inside a form? I've tried document.formName.boxName.write("text"); and document.boxName.write("text"); but neither works.

Reply With Quote
  #2  
Old December 14th, 1999, 12:35 PM
time2brew
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
you are confusing js methods with form properties.

most form objects have a value property that you can set = to your value. here is a quick sample form you can cut and paste

<HTML><HEAD>
<script language="javascript">
function init(){
frm.text1.value="this is a test";
}
</script>
</HEAD>
<BODY onload="init()">
<form name="frm" id="frm">
<INPUT type="text" id="text1" name="text1">
</form>
</BODY>
</HTML>

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Output text to textbox


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway