The best JavaScript pop Tutorial In 2024, In this tutorial you can learn Alert box,Examples,Confirmation box,Examples,Balloon,Examples,Wrap,Examples,
JavaScript can create three kinds of message boxes: warning box, check box, balloon.
Alert box is often used to ensure that users can get some information.
When the warning box appears, users need to click on the OK button to continue.
window.alert () method can not take the window object, the direct use alert () method.
Check box is typically used to verify whether to accept a user operation.
When a confirmation pop-up card, the user can click "OK" or "Cancel" to determine the user operation.
When you click "OK" to confirm box returns true, if you click "Cancel" check box returns false.
window.confirm () method can not bring the window object directly confirm () method.
Prompt box is often used to prompt the user to enter a value before entering the page.
When the prompt box appears, users need to enter a value, then click OK or Cancel button to continue operation.
If the user clicks to confirm, the return value is entered. If the user clicks Cancel, the returned value is null.
window.prompt () method can not bring the window object directly prompt () method.
Pop with a backslash + "n" (\ n) to set the wrap.