实现代码如下:

<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>

以上就是【js拦截alert对话框另类应用】的全部内容了,欢迎留言评论进行交流!

赞(0) 踩(0)
发表我的评论

最新评论

  1. 暂无评论