用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>]