Availability
JavaScript 1.1; JScript 2.0; ECMAScript
v1
Synopsis
function.prototype
Description
The
prototype property is used when a function is used
as a constructor. It refers to an object that serves as the prototype
for an entire class of objects. Any object created by the constructor
inherits all properties of the object referred to by the
prototype property.
See Chapter 8 for a full discussion of constructor
functions, the prototype property, and the
definition of classes in JavaScript.
Bugs
JavaScript 1.1 requires a constructor to be used once before anything
can be assigned to its prototype object.
See Also
Chapter 8
•
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.