离开时自动提示设为首页

<body onunload="BASEBody.style.behavior='url(#default#homepage)';if (!BASEBody.isHomePage('http://eyaya.com.ru'))) BASEBody.SetHomePage('http://....');">
原文地址:https://www.cnblogs.com/djcsch2001/p/2035756.html