With this Spartan, we can destructively disable all the links on the page.
(Or whatever link collection we feed the Fn.arg.)
page links destroy
function destroyLinks(a){
while( a[0] ){ a[0].outerHTML = a[0].innerHTML };
}
usage:
destroyLinks( document.links );
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.