|
create two array objects, and use their push() and pop() functions to do precisely that!
e.g.:
pressing ENTER: array2.push( <text value> );
pressing FORWARD: array3.push( array2.pop() );
pressing BACK: array2.push( array3.pop() );
search for JavaScript Array object members for additional functions.
|