A Preview of Navigator 4.0
Perhaps the most exciting new features in Navigator 4.0 fall into
enhancements that allow Web pages to have much more dynamic
Navigator 4.0 supports new <LAYER>
and <ILAYER> tags that allow HTML
text and objects to be positioned at absolute coordinates
within a window, and to be stacked on top of each other (hence
the name "Layer"). Layers function as sub-documents that can
be independently positioned, stacked, and hidden. They
well as giving Web-page designers pixel-level control over the
contents of a page. Each Document object has a
layers array listing the Layer objects it
contains, and each Layer object has a
document property that refers to the HTML
document it contains. Layers can be dynamically created with
the Layer() constructor.
Navigator 4.0 supports standard "Cascading Style Sheets" (CSS)
functionality as cascading style sheets do, but allow
instead of the special-purpose CSS syntax. Where CSS have a
purely descriptive syntax, JSS are described with a
programming language and thus have additional run-time
used in event handlers and <SCRIPT>
<STYLE> tags as well.
event handling scheme. There is a new Event object that
contains properties that describe the details of an event.
Event handlers are now all passed an Event object when they
are invoked. In addition, there is a much larger set of event
handlers, and a well defined event-handling hierarchy. It is
possible, for example, for individual Layers to respond to
mouse events and individual keystrokes that occur over them.
- Miscellaneous related new features include new Window methods,
a new Screen object, and new properties of the Navigator
object. The window methods allow a program to resize and
re-position windows, bring up a Print dialog, activate the
Forward and Back browser buttons, and so on. Because
of the power of these new methods, most of them are restricted
to trusted scripts that have been digitally signed as
described above. The Screen object provides information about
the size and color depth of the screen on which Navigator is
themselves based on available screen real-estate, for example.
The Navigator object has new platform
and language properties that allow
current platform and on the user's preferred language.