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

Chapter 13. Cascading Style Sheets and J... > Making It Work in Both Browsers!

Making It Work in Both Browsers!

Can it be done? Can these kinds of examples be made to work in two browsers? In fact, the answer is yes!

The key to this is realizing that you can use the differences. The difference you are going to use is the fact that in Internet Explorer an object known as document.all exists. So, if you use an if statement to test for this, you can find out whether you're dealing with Internet Explorer 5 or Netscape Navigator 4:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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