<inputtype="button"onclick="window.location.href='login.php'"value="点击跳转">直接在按钮使用onclick="window.location.href='要跳转的网站'"例如:<inputtype="button"value="跳转"onclick="window.location.href='a.php'"/>或者是使用一个点击函数传入值:<inputtype="button"value="跳转"onclick="tiao('a.php')"/><scripttype="text/javascript">functiontiao(urls){window.location.href=urls;//根据传过来的地址跳转}</script>
顶一下

(0)
0%
踩一下

(0)
0%
- 相关评论
- 我要评论
-