• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Other Neat Stuff

In the next several sections of this chapter, you will learn three very useful tricks. First, I will show you how easy it is to add a clock to your Web pages. A clock is especially useful if you create pages at which visitors are likely to spend a great deal of time. For example, you might write a page that reloads itself every few minutes so that you can provide your visitors with the real-time information you are positing on the Web site. Placing a digital clock on your pages enables your visitors to see how long they have been visiting as well as how current the existing information is.

The second example you will look at shows an option for working around one of JavaScript’s main weaknesses: its inability to provide meaningful, password-protected access to your Web pages. This example shows you a way to apply a relatively simple password scheme that will suffice to keep the average unauthorized Web surfer away from your site.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint