以下代码实现点击按钮跳转到accountedit.jsp页面
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<html>
<head>
<script type="text/javascript">
function jump(){
window.showModalDialog("accountedit.jsp","","dialogWidth:750px;dialogHeight:700px;scroll:no;status:no");
}
</script>
</head>
<body>
<input type="button" onClick="jump()" value="点我跳转" />
</body>
</html>
- 函数介绍
window.showModalDialog() 创建模态对话框;
window.showModelessDialog() 创建非模态对话框。 - 模态对话框 VS 非模态对话框:
最基本的区别就是,在关闭模式对话框之前,程序不能进行其他工作而非模态对话框可以。 - 参数介绍
要下班了周一再写