亲宝软件园·资讯

展开

js拦截alert对话框另类应用

人气:0
复制代码 代码如下:

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

加载全部内容

相关教程
猜你喜欢
用户评论