Javascript [Electronic resources] : The Definitive Guide (4th Edition)

David Flanagan

نسخه متنی -صفحه : 844/ 575
نمايش فراداده

Availability

DOM Level 2 CSS

Synopsis

String removeProperty(String propertyName) throws DOMException;

Arguments

propertyName

The name of the CSS attribute to be deleted.

Returns

The value of the named CSS attribute as a string, or the empty string if the named attribute is not explicitly specified in this style declaration.

Throws

If this style declaration is read-only, this method throws a DOMException with a code of NO_MODIFICATION_ALLOWED_ERR.

Description

This method deletes a named attribute from this style declaration block and returns the value of the attribute.