模态窗口的新增代码
<script>
window.name = "myname";
</script>
模态窗口的部分代码——增加表单的target属性
<form name="form1" method="post" action="insert.asp?up" target="mywin">
<table width="100%" border="0">
<tr>
<td> <div align="right">
<input type="file" name="file1" size="27">
</div></td>
</tr>
<tr>
<td><div align="center">
<input type="submit" name="Submit" value="文件上传">
</div></td>
</tr>
</table>
</form>
<script>
window.name = "myname";
</script>
模态窗口的部分代码——增加表单的target属性
<form name="form1" method="post" action="insert.asp?up" target="mywin">
<table width="100%" border="0">
<tr>
<td> <div align="right">
<input type="file" name="file1" size="27">
</div></td>
</tr>
<tr>
<td><div align="center">
<input type="submit" name="Submit" value="文件上传">
</div></td>
</tr>
</table>
</form>