+ 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

30th Sep 2020, 10:36 PM
Gizmo-Lang
Gizmo-Lang - avatar
4 Antworten
+ 4
In the onclick event of the button, you can do document.body.innerHTML="" I guess.
30th Sep 2020, 11:35 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 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
30th Sep 2020, 11:42 PM
Abhay
Abhay - avatar
+ 1
1st Oct 2020, 9:24 AM
Abhay
Abhay - avatar