Web hosting companies - The Navigator and Other Environment Objects Client-side scripting

The Navigator and Other Environment Objects Client-side scripting primarily focuses on the document inside a browser window and the content of the document. As discussed in Chapter 16, the window, too, is an important part of how you apply JavaScript on the client. But stepping out even one more level is the browser application itself. Scripts sometimes need to know about the browser and the computing environment in which it runs so that they can tailor dynamic content for the current browser and operating system. To that end, browsers provide objects that expose as much about the client computer and the browser as is feasible within accepted principles of preserving a user s privacy. In addition to providing some of the same information that CGI programs on the server receive as environment variables, these browser- level objects also include information about how well equipped the browser is with regard to plug-ins and Java. Another object defined for NN4+ and IE4+ reveals information about the user s video monitor, which may influence the way your scripts calculate information displayed on the page. The objects in this chapter don t show up on the document object hierarchy diagrams, except as freestanding groups (see Appendix A). The IE4+ object model, however, incorporates these environmental objects as properties of the window object. Because the window reference is optional, you can omit it for IE and wind up with a cross-browser, compatible script in many cases. Where the IE (for Windows anyway) and NN environments diverge significantly is in the way scripts can find out whether a particular plug-in or support for a particular MIME type is available in the current browser. As you learn in this chapter, 28 CHAPTER …. In This Chapter Determining which browser the user has Branching scripts according to the user s operating system Detecting plug-in support ….
Looking for affordable and reliable webhost to host and run your business application? Then look no more and go to servlet web hosting services.

Leave a Reply