#1
  1. No Profile Picture
    Bucachacha
    Guest
    Devshed Newbie (0 - 499 posts)
    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.
  2. #2
  3. No Profile Picture
    time2brew
    Guest
    Devshed Newbie (0 - 499 posts)
    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>

Similar Threads

  1. Java output to text files
    By bdot in forum Java Help
    Replies: 0
    Last Post: February 3rd, 2004, 05:28 PM
  2. Mouse over questions. n00b. :o
    By Not Tony Danza in forum HTML Programming
    Replies: 2
    Last Post: December 2nd, 2003, 07:28 AM
  3. Multiline REGEX
    By Santos in forum PHP Development
    Replies: 4
    Last Post: December 12th, 2002, 03:59 PM
  4. HTML::Parser/Entities text truncated in output
    By that1guy in forum Perl Programming
    Replies: 2
    Last Post: January 15th, 2002, 11:59 AM
  5. form field text output
    By cricket in forum PHP Development
    Replies: 3
    Last Post: May 17th, 2001, 10:07 AM

IMN logo majestic logo threadwatch logo seochat tools logo