+ 1
how do you clear the page in js
so let say someone guessed wrong on a game and the screen has to clear its self how do I do that?
1 ответ
0
document.open(); document.close();
This will reset (clear) the whole document (and restart with empty one)...
Any event listener should be forgotten, but js global scope (window object) doesn't forget for almost other js context.