To make a button display the date and time, first you need to make a button in html. Next, the javascript must be entered, either within the <button> tag or in a separate <script> tag. Next, you must create the function that will alter a <p> tag to display the time and date.
No comments:
Post a Comment