取消按钮功能

【方法一】

<input type="button" onclick="javascript:top.location='网页地址';" value="原窗口打开">
<input type="button" onclick="javascript:window.open('网页地址');" value="新窗口打开">

 

 

【方法二】

<a class="cancel" href="javascript:history.back(-1);">取消</a>

posted @ 2016-08-24 09:53  涤新云  阅读(262)  评论(0编辑  收藏  举报