It's fairly simple.

have a play with this code as an html file :
note the corresponding names between the "name" values in the form and form
fields, and with the document.xxx.xxx.value notation.



<html>
<head>
<title></title>

<script language="javascript">

function fill() {
        document.form326s2.as.value = "here is the text to be inserted"
        document.form326s2.input12.value = "another"
}

</script>

</head>

<body>
<form name="form326s2">

<input type="text" name="as" value="text displayed on load"><br>
<input type="text" name="input12" value="more">


<a href="#" onClick="javascript:fill()">fill</A>

</form>

</body>








-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ilhan
Kisioglu
Sent: Saturday, June 02, 2001 1:14 AM
To: [EMAIL PROTECTED]
Subject: [Dynapi-Help] print into form element



hi can i ask a question;

how can i print into form element with client side script?

ilhan



_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to