How can I put this code in the form: onclick