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

WBOY
Release: 2016-05-16 16:48:02
Original
1721 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:
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