网络编程
位置:首页>> 网络编程>> JavaScript>> js拦截alert对话框另类应用

js拦截alert对话框另类应用

  发布时间:2024-04-16 09:53:52 

标签: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>
0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com