Home > Web Front-end > JS Tutorial > body text

Share some commonly used pop-up boxes

零下一度
Release: 2017-06-26 10:26:26
Original
1318 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!