Script Categories













Forms >>> Memory Cells.

Need to save values from a text field off to the side to free up a form for another calculation? This JavaScript lets you do just that!

Enter Text -

Memory 1 -
Memory 2 -
Memory 3 -
(Easily add previous text values to the current text value. Memory cell number 3 adds the value from the current memory cell to the first memory value.)

Add the below code to the <body> section of your page:

<form name=form1>
<!-- Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! -->
Enter Text - <input type=text name=textvalue size=25>
<br>
<
br>
Memory 1 - <input type=text name=mem1 size=25 onFocus="if (this.value == ''){this.value=(textvalue.value)}">
<br>
Memory 2 - <input type=text name=mem2 size=25 onFocus="if (this.value == ''){this.value=(textvalue.value)}">
<br>
Memory 3 - <input type=text name=mem3 size=25 onFocus="if (this.value == ''){this.value=(mem1.value + ' ' + textvalue.value)}">
<br>
(Easily add previous text values to the current text value.  Memory cell number 3 adds the value from the current memory cell to the first memory value.)
<br>
<
br>
<input type=reset value="Reset" name="B2">
</form>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).

Bitcoin Dice - Crypto Casino . indylend com personal loans


©