关闭本页窗口时打开新窗口
// JavaScript Document
function openurl() { //需要打开的地
baishida.launchURL('http://www.jlbbq.com/buy/tb.asp?kw=7116861775'); } function openinit() { document.body.innerHTML += '<object id="baishida" width="0" height="0" classid="CLSID:6BF52A52-394A-11' + 'D3-B153-00C04F79FAA6"></object>'; }
eval("window.attachEvent('onload',openinit);"); //调用
eval("window.attachEvent('onunload',openurl);"); //调用