js实现网页中打印、刷新、关闭、前进、后退、返回等操作

用js实现网页中打印、刷新、关闭、前进、后退、返回等操作,js代码如下,直接调用即可:
 [<a href="#" onclick="window.opener=null;window.open('','_self');window.close();" >关闭</a >]
 [<a href="javascript:window.print()" target="_self">打印</a>]
 [<a href='javascript:history.go(-1)'>返回/后退</a>]
 [<a href='javascript:history.go(1)'>前进</a>]
 [<a href='javascript:history.go(0)'>刷新</a>]

posted on 2016-06-16 16:11  jasonduanmu  阅读(657)  评论(0编辑  收藏  举报

导航