I was wondering: what is the PHP equivalent of this JavaScript code:
window.onload = initAll;
function initAll() {
document.getElementById("redirect").onclick = clickHandler;
}
function clickHandler() {
if(this.toString().indexOf("wapcreate") < 0){
window.location = "ex.html";
}
return false;
}
I want to get all the external links from my server and then direct the users to a disclaimer page