Home > Web Front-end > JS Tutorial > Two ways to prevent alert from popping up_javascript techniques

Two ways to prevent alert from popping up_javascript techniques

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 16:48:02
Original
1743 people have browsed it
Copy code The code is as follows:


Define the overloaded alert function function window.alert(str ){} into a public js file, you will no longer have to worry about alert

If you still need to be prompted, use this method to define
function window.alert(str){
/ / Open a modal dialog box here to display the str string and close it with a delay of 20ms
}
Related labels:
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
Latest Issues
alert is not implemented yet
From 1970-01-01 08:00:00
0
0
0
javascript - Add alert to bootstrap popup layer
From 1970-01-01 08:00:00
0
0
0
alert("Hello JavaScript");
From 1970-01-01 08:00:00
0
0
0
Using $t in alert() for Vue’s i18n translation
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template