Showing posts with label Dotnet study material. Show all posts
Showing posts with label Dotnet study material. Show all posts

Tuesday, 20 March 2012

Cross Browser Dynamic HTML Checking For Browser

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)

Cross Browser Dynamic HTML Introduction

Netscape and Microsoft each have their own definition of Dynamic HTML. Cross-Browser DHTML is the subset of DHTML functionality which can be used compatibly across platforms and across Navigator 4.0 and Internet Explorer 4.0.




DHTML is a word for web pages that uses HTML(Hyper Text Markup Language), CSS(Cascading Style Sheets) and rely on Java Scripts to make the web page interactive. It is a feature of Netscape Communicator 4.0, and Microsoft Internet Explorer 4.0 and is entirely a "client-side" technology. It relies only the browser for the display and manipulation of the web pages and is unrelated to other client-side technologies like Java, Flash.


DHTML excels in creating low bandwidth effects that enhance a web page's functionality. It can be used to create animations, games, applications, provide new ways of navigating through web sites, and create out-of-this world page layouts that simply aren't possible with just HTML. Although many of features of DHTML can be duplicated with either Flash or Java, DHTML provides an alternative that does not require plugins and embeds seamlessly into a web page.


Although the underlying technologies of DHTML (HTML, CSS, JavaScript) are standardized, the manner in which Netscape and Microsoft have implemented them differ dramatically. For this reason, writing DHTML pages that work in both browsers (referred to as cross-browser DHTML) can be a very complex issue.