By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,569 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,569 IT Pros & Developers. It's quick & easy.

workking on controlling HTML froms with javascript

P: n/a
Hi, all

First off I know alittle about javascript, but i have never worked with
controlling froms with it be for i wonder can some help me?

for example:I have this <textarea name"write1">Write Your
Message:</textarea> on a form called myform2, and i have another form
and textarea on another page. how am i to send the text from one from
to the other form?

if someone could help me i would be gratefil.

Jul 23 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Try this:

<script>
function copyValue(){
document.form2.text1.value = document.form1.text1.value
}
</script>
1. Enter text in this textarea:
<form name="form1">
<textarea name="text1">

</textarea>
</form>
2. Click here...
<form>
<input type="button" value="copy value" onClick="copyValue();">
</form>

3. your text will be copied to this textarea
<form name="form2">
<textarea name="text1">

</textarea>
</form>

Jul 23 '05 #2

P: n/a
Sorry, but the forms I was talkking about are on different pages
I am trying to make a message borad
unless i need to replace document with the name of my page?

Jul 23 '05 #3

P: n/a
You are going to need some server side script or programs to make a
message board, such as perl, php or asp.

Jul 23 '05 #4

P: n/a
Details...LOL

Jul 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.