1.
onchange=location.href+="?123"2.
<script>
var id=location.search.substr(1);
if(id!=""){
//你的操作
}
</script>
onchange=location.href+="?123"2.
<script>
var id=location.search.substr(1);
if(id!=""){
//你的操作
}
</script>
因为 如果在iframe的 form 提交之前 本页已经刷新了,那iframe 的form 就不会提交成功的。最好更个延迟,以保证iframe 的准确提交.
function aa()
{
parent.frames["frameName"].ss=selectValue;
self.location.href="";
}
我的iframe里面有个空白的blank.html文件了!原文件是这样的,你们看看吧,大家来帮帮忙!<html>
<head>
<title>tetssfdsf</title>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<link rel="stylesheet" href="images/style.css" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
<!--
function refresh(){
show();
document.form1.submit();
}
function show() {
// alert("test");
document.form1.target="filter";
document.form1.action="returnParticipator.jsp";
document.form1.submit();
}
//-->
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="1" bgcolor="#006699">
<tr>
<td><b><font size="2" color="#FFFFFF">dfddd</font></b></td>
</tr>
</table>
<p align="center"><b>把籔戮厨</b></p>
<table width="100%" border="0" cellspacing="2" cellpadding="1">
<tr>
<td align="left" width="69%"> 祘絪腹:
<select name="ProjectNo" onchange="refresh()">
<option value="">叫匡拒</option>
</select>
把籔戮:
<select name="Staff" onchange="refresh()">
<option value="">叫匡拒</option>
</select>
</td>
<td align="right" width="31%">
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="1" bgcolor="#d0d7af">
<tr>
<td width="5%">腹</td>
<td width="20%">厨絪腹</td>
<td width="28%">祘ず甧</td>
<td width="11%">ら戳</td>
<td width="10%"></td>
<td width="9%">(Hrs)</td>
<td width="10%">ユ硄禣</td>
<td width="7%">巨</td>
</tr>
</form>
<iframe id="filter" name="filter" style="display:none" src="blank.html"></iframe>
</body>
</html>
function post(val){
var locations_free=window.document.location.href;
var loc_result=locations_free.indexOf(val);
if (loc_result!=-1){
window.navigate (locations_free.substring(0,loc_result)+"locationname="+"");
}
}
</script>
<select onchange=post(this.value)>