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

Advanced Projects

The scripts in this chapter are fairly simple examples of what you can accomplish with platform/browser detection and dynamic HTML generation. Try using these techniques in the following projects to get a better understanding of the great results you can achieve:

  1. Use browser detection to dynamically create pages that are customized to work with specific browser versions.

  2. Create a page that will gather all of the information contained in the NAVIGATOR object, and dynamically generate a table that will display that information to the user. (The information gathered from the user's browser and placed in the table is useful as a development tool.)

  3. If you have a site where specific content appears on all pages, use the documentwriteln() method to print the code, and then save the script in an external JavaScript file. In each page, simply call the external file using the SRC attribute of the <SCRIPT> tag. This will let you update only one file to affect site-wide changes.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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