一个简单的问题,请帮忙! 在返回页面中写上top.frameid.location.reload(); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 详细一点找出相关联地关系,然后重新加载刷新比如楼上地如果要在另一个框架中打开新窗口可用document.all.fra[框架的ID].src='http://www.baidu.com' window.框架名.location.reload(); top.yourFrameID.location.reload(); 错误:‘ window.lkoamenu_frame.location’为空或不是对象。这是为什么啊? FrameRole.jsp<%@ page contentType="text/html;charset=UTF-8" errorPage="/office/error.jsp"%><%@ include file="/office/struts.jsp"%><html><head><title></title></head><frameset rows="*" cols="*,193" framespacing="0" frameborder="NO" border="0" > <frame src="http://<%=request.getServerName()%>:<%=request.getServerPort()%>/office/listRole.html" name="mainFrame" id="lkoamenu_frame"> <frameset rows="*,124" cols="*" framespacing="0" frameborder="NO" border="0"> <frame src="" name="rightFrame" scrolling="NO" noresize> <frame src="http://<%=request.getServerName()%>:<%=request.getServerPort()%>/office/addRoleAction.html" name="bottomFrame" scrolling="NO" noresize> </frameset></frameset><noframes><body></body></noframes></html>AddRole.jsp<%@ page contentType="text/html;charset=UTF-8" errorPage="/office/error.jsp"%><%@ include file="/office/struts.jsp"%><%String action = request.getParameter("action");%><%if(action==null){action="";}%><html><head><title></title><link rel="stylesheet" href="/office/css/office.css"></head><body><table width="100%" border="0"><html:form action="/addRole" focus="role"> <tr> <td align="center"><font color="#000099" size="2"><strong>增加用户角色</strong></font></td> </tr> <tr> <td>角色名称:<input class=lanyu type="text" name="role" size="10" maxlength="10"></td> </tr> <tr> <td><div align="center"><font size="2"> <input class=button type=submit value="添 加" name=submit></font></div> </td> </tr> <%if(action.equals("false")){%> <tr> <td><div align="center">该角色名称已存在! </td> </tr> <%}%></html:form></table></body><SCRIPT LANGUAGE="JavaScript"> // window.lkoamenu_frame.location.reload(); // document.all.lkoamenu_frame.src='http://www.baidu.com'top.lkoamenu_frame.location.reload();</SCRIPT></html> <SCRIPT LANGUAGE="JavaScript">top.framexx.location = "aaa.htm";</SCRIPT> <script language=javascript><!--function reloadFrame(){ top.framexx.location = "aaa.htm";}//--></script><form id="a" onSubmit=reloadFrame();>....</form> 在第二个页面中在submit加个验证onclick="check()" type="submit" value="添 加"然后执行check()函数在check()中有parent.document.all.lkoamenu_frame.src='http://www.baidu.com'parent可能是top 1、如果加在服务器端,则在你的响应页里这样写:<%if 判断条件 then response.write "<script langusge=jarascript>" response.write "window.open('要打开的页面1','目标框1');" response.write "window.open('要打开的页面2','目标框2');" response.write "</script>"else response.write "<script langusge=jarascript>" response.write "window.open('要打开的页面3','目标框1');" response.write "window.open('要打开的页面4','目标框2');" response.write "</script>"end if%>2、如果加在客户端,则 <input class=button type=submit value="添 加" name=submit onclick='open_win();'><script langusge=jarascript>function open_win(){ window.open('要打开的页面1','目标框1'); window.open('要打开的页面2','目标框2');}</script>" jq数组输出的问题... 请教几个js概念性问题 哪位高手有网页两侧浮动广告代码 关于想要学习Ext,请各位大侠帮忙指点 google的这行滚动代码 为什么要加个span???? 如何防止别人查看你的JS代码 jqgrid如何实现选中行的时候不勾选复选框 请问怎样做浮动的标语 如何向函数中传递书组参数?? 急急!如何实现鼠标双击table的某一行提取这行的某个单元格的值!(在线等)!!! document.all是在哪里定义的啊? 哪里有入门的javascript电子教程?
比如楼上地如果要在另一个框架中打开新窗口
可用document.all.fra[框架的ID].src='http://www.baidu.com'
这是为什么啊?
<%@ include file="/office/struts.jsp"%>
<html>
<head>
<title></title>
</head>
<frameset rows="*" cols="*,193" framespacing="0" frameborder="NO" border="0" >
<frame src="http://<%=request.getServerName()%>:<%=request.getServerPort()%>/office/listRole.html" name="mainFrame" id="lkoamenu_frame">
<frameset rows="*,124" cols="*" framespacing="0" frameborder="NO" border="0">
<frame src="" name="rightFrame" scrolling="NO" noresize>
<frame src="http://<%=request.getServerName()%>:<%=request.getServerPort()%>/office/addRoleAction.html" name="bottomFrame" scrolling="NO" noresize>
</frameset>
</frameset>
<noframes>
<body>
</body>
</noframes>
</html>AddRole.jsp<%@ page contentType="text/html;charset=UTF-8" errorPage="/office/error.jsp"%>
<%@ include file="/office/struts.jsp"%>
<%String action = request.getParameter("action");%>
<%if(action==null){action="";}%>
<html>
<head>
<title></title>
<link rel="stylesheet" href="/office/css/office.css">
</head>
<body>
<table width="100%" border="0">
<html:form action="/addRole" focus="role">
<tr>
<td align="center"><font color="#000099" size="2"><strong>增加用户角色</strong></font></td>
</tr>
<tr>
<td>角色名称:<input class=lanyu type="text" name="role" size="10" maxlength="10"></td>
</tr>
<tr>
<td><div align="center"><font size="2">
<input class=button type=submit value="添 加" name=submit></font></div>
</td>
</tr>
<%if(action.equals("false")){%>
<tr>
<td><div align="center">该角色名称已存在! </td>
</tr>
<%}%>
</html:form>
</table>
</body>
<SCRIPT LANGUAGE="JavaScript">
// window.lkoamenu_frame.location.reload();
// document.all.lkoamenu_frame.src='http://www.baidu.com'
top.lkoamenu_frame.location.reload();
</SCRIPT>
</html>
top.framexx.location = "aaa.htm";
</SCRIPT>
<!--
function reloadFrame(){
top.framexx.location = "aaa.htm";}
//-->
</script><form id="a" onSubmit=reloadFrame();>....</form>
在submit加个验证onclick="check()" type="submit" value="添 加"然后执行check()函数
在check()中有
parent.document.all.lkoamenu_frame.src='http://www.baidu.com'
parent可能是top
<%
if 判断条件 then
response.write "<script langusge=jarascript>"
response.write "window.open('要打开的页面1','目标框1');"
response.write "window.open('要打开的页面2','目标框2');"
response.write "</script>"
else
response.write "<script langusge=jarascript>"
response.write "window.open('要打开的页面3','目标框1');"
response.write "window.open('要打开的页面4','目标框2');"
response.write "</script>"
end if
%>2、如果加在客户端,则
<input class=button type=submit value="添 加" name=submit onclick='open_win();'>
<script langusge=jarascript>
function open_win()
{
window.open('要打开的页面1','目标框1');
window.open('要打开的页面2','目标框2');
}
</script>"