Javascript moving arrays

Ask questions about projects relating to: computer science or pure mathematics (such as probability, statistics, geometry, etc...).

Moderators: AmyCowen, kgudger, bfinio, MadelineB, Moderators

Locked
immasink
Posts: 2
Joined: Sat Mar 02, 2013 1:52 pm
Occupation: Student: 7th grade
Project Question: I am working on ABC's of Programming: Writing a Simple "Alphabetizer" which I use JavaScript to script an alphabetizer usable in browser.
Project Due Date: 3/5/13
Project Status: I am conducting my experiment

Javascript moving arrays

Post by immasink »

How would i take the text in inputText and move it to outputText. I just need to move it, not alphabetize it
<HTML>
<HEAD>
<TITLE>JavaScript Aphabetizer 2013 Science Fair</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function splitthis()
{
var input=inputText.value;
var output=outputText.value;

}

</SCRIPT>
</HEAD>

<BODY>
<center><b>2013 Science Fair JavaScript Alphabetizer</b></center>
<FORM>
Input Text Box<br>
<TEXTAREA name="inputText" rows=5 cols=80 wrap=on></TEXTAREA><br>
<INPUT NAME="alphabetize" TYPE=Button VALUE="alphabetize" onClick="splitthis"><br>
<INPUT NAME="reverse alphabetize" TYPE=Button VALUE="reverse alphabetize" onclick=><br>
<INPUT NAME="clear" TYPE=Button VALUE="clear" onClick= ><br>
Output Text Box<br>
<TEXTAREA name="outputText" rows=5 cols=80 wrap=on readonly></TEXTAREA>
</FORM>
</BODY>
</HTML>
hhemken
Former Expert
Posts: 266
Joined: Mon Oct 03, 2005 3:16 pm

Re: Javascript moving arrays

Post by hhemken »

Immasink,

Have you researched your question online? Try googling the following:

Code: Select all

javascript how to write into a text area
In general, Google is usually able to provide good results if you ask your question in plain english.

Let us know how it goes, and good luck!

Heinz Hemken
Heinz Hemken
Mentor
Science Buddies Expert Forum
Locked

Return to “Grades 6-8: Math and Computer Science”