Button (JSP) 怎么跳转 不了页面

new_Hand-the_best 2014-01-03 08:57:45
<input type="button" name="button" value="" onclick="window.location.href('index.jsp')"/>


点了没效果, 求解释!!!!
...全文
281 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
new_Hand-the_best 2014-01-07
  • 打赏
  • 举报
回复
谢啦!冒失是这个错误 - -
xiaoliuliu2050 2014-01-04
  • 打赏
  • 举报
回复
楼上正解 啊
UDown 2014-01-04
  • 打赏
  • 举报
回复
<input type="button" name="button" value="" onclick="window.location.href('index.jsp')"/>
改成
<input type="button" name="button" value="" onclick="window.location.href='index.jsp'"/>
姜小白- 2014-01-04
  • 打赏
  • 举报
回复

<html>
	<head>
		<title>Test</title>
		<script>
		function aab() {
			alert('turn to aa.html');
			window.location.href = './aa.html';
		}
		</script>
	</head>
	<body>
		<input type="button" name="button" value="aa" onclick="aab()"/>
	</body>
</html>

58,452

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧