Home  >  Article  >  Web Front-end  >  js interception alert dialog alternative application_javascript skills

js interception alert dialog alternative application_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:43:36967browse
Copy code The code is as follows:


<script> <br>var myAlert=alert; <br>window.alert=function(msg){ <br>//your code <br>myAlert ( msg "-TEST"); <br>} <br>function opened(msg){ <br>alert(msg); <br>} <br></script>
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