Use JavaScript Verification Form Submit & CSS Simple Cognition

xiaoxiao2021-03-06  16

Use JavaScript verification form commit

The first thing we have to verify in that Form, what we have to do is:

Analysis here,

1. Name = "f" Generally we verified that you don't need to name the form, but here, why, what you need to verify the TEXTFIELD of that form?

2. Language = "javascript" Here you need to point out what the verified scripting language is not case sensitive.

3. οnsubmit = "Return f_submit ()" Here, the value of return is very important, it will be used in the JavaScript scripting language, can not be in line with the script! The front onSubmit must write all, write into submit, write Can not!

Then we see JavaScript