Home  >  Article  >  Web Front-end  >  Share some commonly used pop-up boxes

Share some commonly used pop-up boxes

零下一度
零下一度Original
2017-06-26 10:26:261320browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn