View Single Post
Old 01-09-2013, 01:00 AM   PM User | #3
sbhmf
New Coder

 
Join Date: Jan 2013
Location: Sunnyvale, CA
Posts: 40
Thanks: 3
Thanked 1 Time in 1 Post
sbhmf is an unknown quantity at this point
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.
sbhmf is offline   Reply With Quote