jsp页面里的button按钮怎么实现页面跳转

唐it432 2013-11-20 10:46:02
jsp页面里的button按钮怎么实现页面跳转,是加属性onclick吗?还是怎么杨啊,求高手
...全文
15406 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
FandyKing 2013-11-21
  • 打赏
  • 举报
回复
我觉得楼主应该先百度,谷歌下,没有找到答案以后再到这里来寻求帮助。
引用 6 楼 zyb134506 的回复:
引用 1 楼 huxiweng 的回复:
<input type="button" onclick="javascript:window.location.href='http://www.baidu.com';" value="test" />
+1
快乐的2 2013-11-21
  • 打赏
  • 举报
回复
引用 1 楼 huxiweng 的回复:
<input type="button" onclick="javascript:window.location.href='http://www.baidu.com';" value="test" />
一如既往- 2013-11-21
  • 打赏
  • 举报
回复
<input type="button" onclick="click()" value="跳转" /> <script> function test(){ var url = "要跳转的路径"; window.location.href= url; } </script> 很简单,你自己搜一下. 网上很多的
TT天天 2013-11-21
  • 打赏
  • 举报
回复
这种应该自己百度、。
枫醉秋 2013-11-21
  • 打赏
  • 举报
回复
楼上的都对,LZ可以自己调查一下吗,网上到处都是
tkg082 2013-11-20
  • 打赏
  • 举报
回复
直接1楼那样,或者抽出onclick事件, <input type="button" onclick="test()" value="点击" /> <script ...> function test(){ var url = "要跳转的路径"; window.location.href= url; } </script>
teemai 2013-11-20
  • 打赏
  • 举报
回复
<input type="button" onclick="javascript:window.location.href='http://www.baidu.com';" value="test" />

81,092

社区成员

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

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