注:contentWindow 兼容各個瀏覽器,可取得子窗口的 window 對象。
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>
</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<link rel="stylesheet" href="<%=path%>/css/style.css" type="text/css">
<script type="text/javascript" src="<%=path%>/js/jquery.js "></script>
<script type="text/javascript">
function dosearch(){
document.form.action="<%=path%>/pages/query/index.do?doaction=search";
document.form.submit();
}
function reset(){
${'#id'}.attr("value","");
}
function pop(){
src= ;
winFeatures={dialogWidth:900px;status:no;help:no;dialogHeight:300px};
window.showModalDialog(src,window,winFeatures);
}
</script>
</head>
<body>
<form action="" name="form" method="post" target="result">
<input type="hidden" name="doaction" value="search"/>
<table class=" " border="0" cellspacing="1" width="100%">
<tr class="title">
<td colspan="6">
查詢條件
</td>
</tr>
<tr class="detail">
<td><font color='red'>* </font>XXX</td>
<td colspan="3">XXX</td>
<td colspan="2"></td>
</tr>
<tr class="bottom">
<td colspan="6" align="center">
<input type="button" class="btn3_mouseout" value="查詢" onclick="dosearch();">
<input type="button" class="btn3_mouseout" value="重置" onclick="reset();">
<input type="button" class="btn3_mouseout" value="" onclick="pop();">
</td>
</tr>
</table>
</form>
<div style="width: 100%;height:500px;">
<iframe src=" " width="100%" allowTransparency=true marginwidth="0" marginheight="0" frameborder="0" scrolling="no" name="result" onload="this.height=this.contentWindow.document.body.scrollHeight" ></iframe>
</div>
</body>
</html>