如何在frame框架中控制网页跳转
2个回答
展开全部
一共三个页面:
main.html(分层):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Insert title here</title>
</head>
<frameset rows="20%, *">
<frame name="up" src="up.html"/>
<frame name="down"/>
</frameset>
</html>
up.html(上层):
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="down.jsp" target="down"><!-- target属性填写在哪个frame显示 -->
name:<input type="text" name="name">
<input type="submit" value="提交">
</form>
</body>
</html>
down.jsp(点击调用jsp):
<body>
${param.name}<!-- 拿到name的值 -->
</body>
main.html(分层):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Insert title here</title>
</head>
<frameset rows="20%, *">
<frame name="up" src="up.html"/>
<frame name="down"/>
</frameset>
</html>
up.html(上层):
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="down.jsp" target="down"><!-- target属性填写在哪个frame显示 -->
name:<input type="text" name="name">
<input type="submit" value="提交">
</form>
</body>
</html>
down.jsp(点击调用jsp):
<body>
${param.name}<!-- 拿到name的值 -->
</body>
2017-04-14
展开全部
一共三个页面:
main.html(分层):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Insert title here</title>
</head>
<frameset rows="20%, *">
<frame name="up" src="up.html"/>
<frame name="down"/>
</frameset>
</html>
up.html(上层):
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="down.jsp" target="down"><!-- target属性填写在哪个frame显示 -->
name:<input type="text" name="name">
<input type="submit" value="提交">
</form>
</body>
</html>
down.jsp(点击调用jsp):
<body>
${param.name}<!-- 拿到name的值 -->
</body>
main.html(分层):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Insert title here</title>
</head>
<frameset rows="20%, *">
<frame name="up" src="up.html"/>
<frame name="down"/>
</frameset>
</html>
up.html(上层):
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="down.jsp" target="down"><!-- target属性填写在哪个frame显示 -->
name:<input type="text" name="name">
<input type="submit" value="提交">
</form>
</body>
</html>
down.jsp(点击调用jsp):
<body>
${param.name}<!-- 拿到name的值 -->
</body>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询