Automatically updating web page

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.


  1. Pingback:

  2. eric   •  

    It is a tourist attraction that draws foreigners and Thai nationals, primarily for the night life.

  3. eric   •  

    Christian Rudder, a co-founder of online dating site Ok Cupid, has long suggested online daters are kinda, sorta, secret racists.

  4. eric   •  

    You can never see my earrings because of all my hair yet here Miley’s are on show for all the world to see.

  5. eric   •  

    For example, software like rootkits can be installed and will use newly added processes, wresting some control from the unwary administrator.

  6. eric   •  

    My code opens templates, unprotects them, writes stuff, combines them into a final report, and reprotects them.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>