• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 12. Dynamic HTML > The Role of JavaScript in Dynamic HTML

The Role of JavaScript in Dynamic HTML

The most frustrating component of DHTML is the Tower of Babel that JavaScript has become in relationship to DHTML. With the fourth generation of both browsers, each (Netscape and Microsoft) uses a solution unique to its own browser. However, with the sixth generation, Netscape seems to have changed its mind about addressing CSS objects. So now, even if you go to all the work of creating multiple scripts to address the different browsers, their own internal consistency is suspect when it comes to JavaScript and CSS because the newer versions of the browser might not be compatible with the older version. Nevertheless, the future, while still the future, holds some promise of a merger. In the area of CSS, both NN6+ and IE5+, including IE6, use a common method of addressing IDs in CSS. The following section shows where this mutual point is and gives some brief history of where IE and NN have come from.

Netscape’s Solution

With the advent of NN4, JavaScript’s relationship to CSS and DHTML in general seemed to offer a clean solution to these new HTML objects. Basically, this format could assign a value or read a CSS object:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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