Glitch Posted March 16, 2019 Report Share Posted March 16, 2019 Hi! How can I put a button to check the current time? Like a time check thingy. Just want to check the time. (It's not like I don't have a clock.) It's just that, I can't seem to display Timestamp. Any help is appreciated! Quote Link to comment Share on other sites More sharing options...
0 ManokNaPula Posted March 16, 2019 Report Share Posted March 16, 2019 Not quite good in Javascripts but you can use this one I tried. Create an HTML Block and disable HTML Editor. And then paste this code: <input type="button" value="Time Check" onclick="getElementById('timecheck').innerHTML=Date()"></button> <p id="timecheck"></p> Let me know if this helps. Quote Link to comment Share on other sites More sharing options...
Question
Glitch
Hi!
How can I put a button to check the current time? Like a time check thingy.
Just want to check the time. (It's not like I don't have a clock.) It's just that, I can't seem to display Timestamp.
Any help is appreciated!
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.