主题:各位高手帮帮忙
文件aaa.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="javascript" type="text/javascript">
function aa(){
window.showModalDialog("test2.htm")
}
</script>
<base terget=_self>
</head>
<body>
<a href="javascript:" onclick="aa()">弹出</a>
</body>
</html>
文件test.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<base terget=_self>
</head>
<body>
<form id="form1" name="form1" method="post" action="?">
<input type="text" name="textfield" />
<input type="submit" name="Submit" value="提交" />
</form>
</body>
</html>
功能实现:
运行aaa.html文件有弹出两个字,,点击弹出两个字就会有一个"网页对话框"窗口弹出来.
弹出来的窗口内容是文件test.html的内容,,可是为什么文件test.html内容里有一个提交功能,,一点提交的时候,为什么会弹出一个新窗口????我想让它就在那个"网页对话框"窗口里运行提交功能,,可以吗?,,应该怎么做!!!!如果可以提供一下成功的代码,,谢谢!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="javascript" type="text/javascript">
function aa(){
window.showModalDialog("test2.htm")
}
</script>
<base terget=_self>
</head>
<body>
<a href="javascript:" onclick="aa()">弹出</a>
</body>
</html>
文件test.html
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<base terget=_self>
</head>
<body>
<form id="form1" name="form1" method="post" action="?">
<input type="text" name="textfield" />
<input type="submit" name="Submit" value="提交" />
</form>
</body>
</html>
功能实现:
运行aaa.html文件有弹出两个字,,点击弹出两个字就会有一个"网页对话框"窗口弹出来.
弹出来的窗口内容是文件test.html的内容,,可是为什么文件test.html内容里有一个提交功能,,一点提交的时候,为什么会弹出一个新窗口????我想让它就在那个"网页对话框"窗口里运行提交功能,,可以吗?,,应该怎么做!!!!如果可以提供一下成功的代码,,谢谢!