In this example, we show a form to let user type in a url. The html Form is assigned a event handler “goto” using the attribute “onSubmit="gogo(); return false;"”. That means, when the user presse enter to submit the form, the browser will call the “gogo” function. The “return false;” part means the form will not actually be sent anywhere as traditionally it is sent to the value of the attribute “action=”
See also:
Page created: 2005-06. © 2005 by Xah Lee.