+ 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

20th Jul 2020, 4:55 AM
Ajay Malwal
Ajay Malwal - avatar
2 ответов
+ 1
You are overwriting whole DOM by document.body.innerHTML. It will be more efficient. If you do document.x.innerHTML.
20th Jul 2020, 5:05 AM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar
+ 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)
20th Jul 2020, 5:20 AM
Abhishek Kudlur