Is it possible with Javascript to copy print display info into a hidden textbox on a form? I have borrowed a shopping cart that works for me from a javascript book. The cart has items entered into arrays and displays the items to the shopper. Included in the script are these functions:addItem, addtocart, deleteItem, printItem, and viewcart. The cart works now but I'd like to have the shopping cart items sent to me in email as well as the form info when the user clicks the submit button from the display item page. The display page requires the user to print the page and send in the order through mail. I have no problem having the form info emailed to me, just a problem with collecting the print displayed shopping items in the cart. function myFunction() { document.clientInfo.message.value = shoppingCart.display(true, top.MAIN.document); } The form button onClick="JavaScript:top.HIDDEN.myFunction()" should trigger myFunction. This function does not work. Thanks for any direction on this.
function myFunction() { var result = shoppingCart.description + "...$" + shoppingCart.price JavaScript:top.MAIN.document.clientInfo.message.value = result; onClick="JavaScript:top.HIDDEN.myFunction(); This is working, except the result is only the last item the user added to the cart. Not sure how to get all the items into result. Any help appreciated.