Home >Web Front-end >JS Tutorial >Detailed explanation of javascript form validation and Window_javascript skills
1. Form verification form
1. Create a new form:
2. The function of the form: it can transfer the URL and data to the database together.
3. Action attributes: action and confirmation button
When the user clicks the confirm button, the content of the form is transferred to another file. The form's action attribute defines the file name of the destination file. The file defined by the action attribute usually performs related processing on the input data received.
2. JavaScripeWindow--Browser Object Model
1. window object
All browsers support the Window object, which represents the browser window. Global variables are properties of the window object, and global functions are methods of the window object.
2. JsPopupAlert message box
1) Use of confirmation box
3) Use of warning box alert
3. Timing method
setTimeout(); execute code at some time in the future - using recursive method
clearTimeout();cancel setTimeout();