+ 1
How to make a button that hides everything on screen and new things appear?
How to make a button that hides everything on screen and new things appear
4 Antworten
+ 4
In the onclick event of the button, you can do document.body.innerHTML="" I guess.
+ 1
👑 Prometheus 🇸🇬 that won't hide ,it will set innerHtml to nothing ,you can't get those elements back now if I am not wrong ,
Basketball Person you can do it something like this
https://code.sololearn.com/W2EC9x7iRg9h/?ref=app
If there is any text outside tags ,it won't work for that
+ 1
Kode Krasher thks