Name

delete — NN 4 IE J3 ECMA 1

Synopsis

The delete operator. This operator removes a property from an object (e.g., a prototype property from an instance of an object to whose static object your script added the prototype earlier) or an element from a script-generated array. Internet Explorer and ECMA versions return a Boolean value based on the success of the deletion; Navigator 4 returns undefined.

Example

delete myString.author

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.