Home > Article > Web Front-end > Share some commonly used pop-up boxes
Commonly used pop-ups: (3 types)
1.prompt("Display user text", "Default value of input field");
print(); display Print dialog box;
Find(); Display the search dialog box;
(Limited use)
2. alert ("prompt content");
It is usually used to "warn the user", and the dialog box can only be closed after reading.
3.window.confirm("content"); The user confirms in a single machine. False means that the user clicked Cancel or Close in the upper right corner.
In some cases, we can use confirm to determine whether the user wants to delete an option, based on whether the value returned is equal to
1. Better to use.
The above is the detailed content of Share some commonly used pop-up boxes. For more information, please follow other related articles on the PHP Chinese website!