DekGenius.com
Team LiB   Previous Section   Next Section
CSSStyleDeclaration.removeProperty( ) delete a CSS attribute specification

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.

    Team LiB   Previous Section   Next Section