frame 如何把左边的选择的数据提交到右边的页面上? form 元素有个action属性这样试试:<FORM ACTION="http://example.microsoft.com/sample.html" METHOD="POST"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这样是提交到左面的页面上来的,我的目的是左边的页面不动,或者刷下新,想把action的内容在右面的right frame中显示,改如何做呢? <FORM target="右边框架的name属性值" action="提交到的页面" 这样写的话,frame的右面之jsp在新的页面跑出来了,而不是在frame的右面显示出来,要求是在右面显示,而不是新弹出一个窗口,该如何弄呢? 怎么可能弹出新窗口,你target没设置对吧??index.htm<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>test</title></head> <frameset rows="*" cols="195,*" border="0" framespacing="0" frameborder="NO"> <frame src="left.htm" name="leftFrame" scrolling="auto"> <frame src="right.htm" name="rightFrame"> </frameset>left.htm,要设置表单的target为右边框架的name属性的值<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title></title></head><body><form method='get' action='right.htm' target="rightFrame"><!----设置target为右边框架的name----><input type='text' name='par' value='parvalue'/><input type="submit" value="提交到右框架" /></form></body></html>right.htm,就简单的输出查询参数而已<script>document.write("Get参数串:"+location.search);</script> JS封装! jquery easyui-datagrid数据统计查询 分页问题 EXT 3.0 如何修改文件选择框的按钮样式 (inputType=file) DIV 容器中相对定位 <急>js for 循环动态 增加DIV 宽度 怎样修改才能使得梅花雪树加载的时候只显示第一级呢? jquery的show()对iframe不起作用 求个JS的组合算法 求助 高手这段JS解密。。。 top.location.href这个是不是可以跨域跳转? 请问怎么用JS执行绑定到其他元素上的事件程序? 如何动态得到表单值,在线等.......
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>test</title>
</head>
<frameset rows="*" cols="195,*" border="0" framespacing="0" frameborder="NO">
<frame src="left.htm" name="leftFrame" scrolling="auto">
<frame src="right.htm" name="rightFrame">
</frameset>left.htm,要设置表单的target为右边框架的name属性的值
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
</head>
<body>
<form method='get' action='right.htm' target="rightFrame"><!----设置target为右边框架的name---->
<input type='text' name='par' value='parvalue'/>
<input type="submit" value="提交到右框架" />
</form>
</body>
</html>
right.htm,就简单的输出查询参数而已
<script>
document.write("Get参数串:"+location.search);
</script>