10/13/13 Ms. Ramirez
Lab 6
Using Javascript, I created a lab where it displays the time and the current date and time as well. When clicked, it will release a button saying that the page is loaded, and from there on, it will display the time you opened the document, and the ongoing time in general. The objective of the lab was to basically create a lab that has a functioning current time and time that was clicked on in general. It was supposed to test our knowledge on creating efficient JavaScript tabs.
First and foremost, the HTML page created was almost just a linking page. All of the tags used were linking it to the JS page. So, the first thing that had to be done is the linking. Second of all, inside the JS was the main functions. The Javascript document contained the alert Function that opens up the alert when the page is opened. Third of all, it contains the date, year, and months so it could detect the time easily. Moreover, for the computer to realize your age, you had to implement the amount of seconds and time to get the added result at the end. I used Dreamweaver to create this. This could be very helpful in the future if I were to make a website where I would want the time to be shown in the page itself.
No comments:
Post a Comment