<script>
window.attachEvent('onunload',function(){alert('尊敬的客户,为了方便核对机票或酒店信息建议您收藏本页!');window.external.addFavorite('http://www.','上海');});
</script>
window.attachEvent('onunload',function(){alert('尊敬的客户,为了方便核对机票或酒店信息建议您收藏本页!');window.external.addFavorite('http://www.','上海');});
</script>
解决方案 »
- ckeditor 自己添加了事件,然后 setData("值") 操作后事件失效,再次绑定也不成功???谁有好的解决方法,急!急!急!急!急!急!急!急!
- HTML如何实现按键~将整个form里面的单选 复选 文本框都设置为只读?就是灰色的那种
- firefox 下 DIV 不能触发 onkeydown 事件,谁有好的建议呢?
- javascript的调试
- 如何实现iframe的自适应高度 解决给分, 有经验者看看!1
- 2006年04月份的微软MVP申请开始了
- 邮件发送问题
- 求助
- 提示框标题如何修改
- 用jquery进行函数嵌套运算,该如何写。
- event.returnValue 到底是什么含义,有什么好处?能给我一个例子看看吗?
- JS关闭页面问题
window.attachEvent('onunload', function(){
if (confirm('尊敬的客户,为了方便核对机票或酒店信息建议您收藏本页!')) {
window.external.addFavorite('http://www.163.com', '上海');
}
});
Navigate to another location by entering a new address or selecting a Favorite.
Click the Back, Forward, Refresh, or Home button.
Click on an anchor that refers the browser to another Web page.
Invoke the anchor?A HREF="../methods/click.html">click method.
Invoke the document?A HREF="../methods/write.html">write method.
Invoke the document?A HREF="../methods/open_1.html">open method.
Invoke the document?A HREF="../methods/close_1.html">close method.
Invoke the window?A HREF="../methods/close_0.html">close method.
Invoke the window?A HREF="../methods/open_0.html">open method, providing the possible value _self for the window name.
Invoke the window?A HREF="../methods/navigate.html">navigate or NavigateAndFind method.
Invoke the location?A HREF="../methods/replace.html">replace method.
Invoke the location?A HREF="../methods/reload.html">reload method.
Specify a new value for the location?A HREF="../properties/href_3.html">href property.
Submit a form to the address specified in the ACTION attribute via the INPUT type=submit control, or invoke the submit method
当你连接在其他页面时选择在新窗口打开,就不会触发该事件了。