SyntaxFix
Write A Post
Hire A Developer
Questions
Using document.body.innerHTML = ''; does work! Just saying, if using HTML (DOM or on function) you can usedocument.writeln(''); but only onClick or onDoubleClick :)
document.body.innerHTML = '';
HTML
DOM
function
document.writeln('');
onClick
onDoubleClick