The document layers object is specific to Netscape 4.0.While the document all object is specific to IE 4.0.So by checking if the objects exists we can create the Boolean variables NS4 for Netscape 4.0 and IE4 for INTERNET EXPLORER 4.0 and assign them true are false depending upon which browser is used. Now whenever you need to check which browser someone is using you just have to use
NS4 or
IE4.
NS4 =(document. layers)
IE4 = (document .all)
No comments:
Post a Comment