I\'m looking for a way to remove the entire content of a web page using pure Javascript -- no libraries.
I tried:
document.documentElement.innerHTML
I believe this will do it
document.clear() //deprecated window.location = "about:blank" //this clears out everything