您的位置:首页 > Web前端 > JavaScript

点击按钮页面跳转

2011-04-27 11:30 323 查看
在html页面中 实现点击按钮页面跳转。语句如下:

<input type="button" value="跳转" onClick="window.location.reload('product.asp');">

点击“跳转”按钮时 便跳到product.asp页面.

注:input里的类型"type"必须等于"button",如果是type="submit",此js不起作用(当然也可以编写脚本使之实现在这我就不做说明了!)。

<div class="fast_nr1" style="margin-right:5px; "><input name="" type="image" src="images/ann1.gif" align="absmiddle" onclick="javascript:window.open('jy-products.jsp');" target="_self" /></div>

开启新页
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息