0
How do I clear all the contents on a page using javascript?
I was wondering how (if possible) you can clear a document completely using javascript. Any ideas?
1 Réponse
+ 3
You mean like this
document.getElementsByTagName('body')[0].innerHTML = '';