var thisHREF = document.location.href; if(thisHREF.indexOf("?")>= 0 || thisHREF.indexOf("htm")>= 0 || thisHREF.indexOf("php")>= 0 || thisHREF.indexOf("asp")>= 0 || thisHREF.indexOf("html")>= 0){ document.write(""); }else{ document.write(""); }