Your homework assignment at the end of this chapter will be to figure out how to add seconds to the time.
You don't have to sit in front of your computer, updating the dates and times on your websites. The ability to write HTML to web pages dynamically is one of Java Script's most powerful features.
To understand how to update the date and time on the page, you'll first have to learn about variables, strings, and functions.
However, you can't use the method described in that article to solve this problem.
That method requires that you identify all JSF components and write them into your JSF pages.
With Java Script you can update the content on your pages automaticallyÂevery day, every hour, or every second.
In this chapter, I'll focus on a simple script that automatically changes the date on your web page.