创建模态窗口

<script type="text/javascript">
	function newDialog(){
		var result = window.showModalDialog("custSearch.jsp",[window],"dialogWidth=415px;dialogHeight=500px;help=0");
		if(result!=null){
			document.getElementById("custID").value = result[0];
			document.getElementById("custName").value = result[1];
		}
	}

</script>
原文地址:https://www.cnblogs.com/luoyanli/p/2569627.html