CSPP552: Web Programming, JavaScript part 9
Built-in Classes
- JavaScript's interface with browser
- Objects have properties and methods (kind of like in C++)
- Document class
- document object is current document
- We've seen document.writeln() method already
- Document has a lot of properties, like
- bgColor
- fgColor
- images[]
- cookie
- Document methods are
- write
- writeln
- close
- open
- clear
- Despite DOM, standardization hard to come by
- Other object types include Navigator, Image,
Window, Frame, Date, and Math.
- If you want to make any sense of this, get the O'Reilly book.
Next