以下代码来自网上
步骤一:在"Common/js/"下创建js文件SysMsgBox.js

重写alert函数// JScript 文件
重写alert函数

重写alert函数
var alternateFrame=null;//生成的iframe
重写alert函数
var alternateWin=null;
重写alert函数
重写alert函数window.alert
=showAlert;
重写alert函数window.confirm
=showConfirm;
重写alert函数
}
步骤二:在程序页面上引用该脚本,直接使用alert和confirm函数。
重写alert函数<html xmlns="http://www.w3.org/1999/xhtml">
重写alert函数
<head runat="server">
重写alert函数    
<title>无标题页</title>
重写alert函数
重写alert函数    
<script language="javascript" src="http://www.cnblogs.com/Common/JS/SysMsgBox.js"></script>
重写alert函数

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2021-12-15
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-13
  • 2021-06-03
  • 2022-01-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
相关资源
相似解决方案