JS listens to the mouse click (onmousedown) and keyboard click (onkeydown) events and automatically jumps to the page. Friends who are studying can refer to it.
$(function(){var i = 0;document.onmousedown=function(event){ if(i==1){window.open('http://www.njxblog.com');}//setTimeout(function (){window.open('//www.VeVB.COM')},2000); //The timing is not very good and will be regarded as an advertisement by the browser; };var j = 0;document.onkeydown=function(event){ if(j==1){window.open('http://www.njxblog.com');}//setTimeout(function (){window.open('//www.VeVB.COM')},2000); //The timing is not very good, and it will be regarded as an advertisement by the browser; };});PS: Here I recommend an online query tool about JS events, which summarizes the commonly used event types and function functions of JS:
A complete list of javascript events and functions:
http://tools.VeVB.COM/table/javascript_event