Monday, October 23rd, 2017

window.onload= function(){ DisableEnableLinks(true) } function DisableEnableLinks(xHow){ objLinks = document.links; for(i=0;i<objLinks.length;i++){ objLinks[i].disabled = xHow; //link with onclick if(objLinks[i].onclick && xHow){ objLinks[i].onclick = new Function(“return false;” + objLinks[i].onclick.toString().getFuncBody()); } //link without onclick else if(xHow){ objLinks[i].onclick = function(){return false;} } //remove return false with link without onclick else if(!xHow && objLinks[i].onclick.toString().indexOf(“function(){return false;}”) != -1){ objLinks[i].onclick = null; } [...]

Secure Linux Web Hosting