复制代码 代码如下:
<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对话框另类应用的全部内容,更多相关js拦截alert对话框另类应用内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复