<input type="button" οnclick="opened('ALERT')" value="提示"/>
<script> var myAlert=alert; window.alert=function(msg){ //your code myAlert (msg+"-TEST"); } function opened(msg){ alert(msg); }</script>