var url = "https://www.cnblogs.com/zing"; location.href = url; window.event.returnValue = false;
可按照上面的方式来写