if(document.URL.indexOf("test")!=-1){ }else{ document.write(''); }