+ 1
How I put a back button in this please se?
I want put a back button after clicking time. Time will show but I don't know how I put a back button here. Please help https://code.sololearn.com/W8u3U4Zn172T/?ref=app
2 ответов
+ 1
You are overwriting whole DOM by document.body.innerHTML. It will be more efficient. If you do document.x.innerHTML.
+ 1
You should use CSS
Add another div element( with time and back button) in html which opens on clicking time.
Set display:none(in CSS) for the div element and display:block for the main one( which happens on clicking back button)