Levent Ozturk
Enter
JavaScript: dynamically remove a javascript by name
var rmv1 = "remove1.js";
var rmv2 = "";

var sl=document.getElementsByTagName("script");
for (var i=sl.length; i>=0; i--) {
    if (sl[i] && 
        sl[i].getAttribute("src")!=null &&
        sl[i].getAttribute("src").indexOf(rmv1)!=-1) {
        sl[i].parentNode.removeChild(sl[i]);
    }
}
All the material listed and linked at this World Wide Web domain are strictly private property and copyrighted. © Copyright -∞-∞ Levent Ozturk. All rights reserved. Reproduction or use of any material, documents and related graphics and any other material from this World Wide Web server is strictly prohibited. Site Map