Availability
Netscape 4 only
Synopsis
layer.load(src, width)Arguments
src
A string that specifies the URL of the document to be loaded into
layer.
width
An integer that specifies a new width, in pixels, for
layer.
Description
load( ) loads a new document into
layer and specifies a
width at which the lines of that document
are wrapped.
Note, however, that load( ) does not work while
the current document is being parsed. For this reason, you should not
call load( ) in a top-level script; instead, call
it in an event handler or a function called from an event handler.
See Also
The src property of the Layer object
•
Table of Contents
•
Index
•
Reviews
•
Examples
•
Reader Reviews
•
Errata
JavaScript: The Definitive Guide, 4th Edition
By
David Flanagan
Publisher
: O'Reilly
Pub Date
: November 2001
ISBN
: 0-596-00048-0
Pages
: 936
Slots
: 1
This fourth edition of the definitive reference to
JavaScript, a scripting language that can be embedded
directly in web pages, covers the latest version of the
language, JavaScript 1.5, as supported by Netscape 6 and
Internet Explorer 6. The book also provides complete
coverage of the W3C DOM standard (Level 1 and Level 2),
while retaining material on the legacy Level 0 DOM for
backward compatibility.