易网时代-编程资源站
Welcome
微信登录
首页
/
脚本样式
/
JavaScript
/
js拦截alert对话框另类应用
复制代码
代码如下:
<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>
版权所有©石家庄振强科技有限公司2024
冀ICP备08103738号-5
网站地图