Class 5 – Detecting Form Element Values and Canceling the Default Behavior of Forms and Links

July 16th, 2009 § 0

Here are a set of example files that show how to use Javascript to detect the data that a user has entered into a form.

And sometimes, you will find that you want to cancel the default behavior of a form or link.  You can prevent a form from submitting the data to the server, and you can prevent a link from actually linking to another page by specifying a bit of Javascript with the strategically placed command, “return false;”  Here are some examples:

Related posts:

  1. Class 5 – How to Cancel the Default Behavior of Links and Forms
  2. Class 5 – Certificate Application Form

Tagged:

§ Leave a Reply

What's this?

You are currently reading Class 5 – Detecting Form Element Values and Canceling the Default Behavior of Forms and Links at Web Development Intensive.

meta