急救!如何可以点击图片关闭浏览器? 而且不提示选择是否关闭对话框
以下代码可以,但是总提是用户是否要关,很麻烦,如何去处那个提问,请高手指教!!
<a onMouseOver= "this.style.cursor= 'hand ' " onClick= "javascript:self.close(); "> <img
src= "http://smsimg.163.com/music/email/0704//pop_buttom.gif " width= "386 " height= "39 "> </a>
[解决办法]
<a onMouseOver= "this.style.cursor= 'hand ' " onClick= "window.opener=null;window.close(); "> <img
src= "http://smsimg.163.com/music/email/0704//pop_buttom.gif " width= "386 " height= "39 "> </a>