当前位置:Gxlcms > JavaScript > js拦截alert对话框另类应用

js拦截alert对话框另类应用

时间:2021-07-01 10:21:17 帮助过:6人阅读

代码如下:

<input type="button" onclick="opened('ALERT')" value="提示"/>
<script>
var myAlert=alert;
window.alert=function(msg){
//your code
myAlert (msg+"-TEST");
}
function opened(msg){
alert(msg);
}
</script>

人气教程排行