Export (0) Print
Expand All

HtmlElement.RemoveAttribute Method

Silverlight

Removes an attribute from the current HTML element.

Namespace:  System.Windows.Browser
Assembly:  System.Windows.Browser (in System.Windows.Browser.dll)

public void RemoveAttribute(
	string name
)

Parameters

name
Type: System.String
The name of the attribute to remove.

ExceptionCondition
ArgumentException

name is an empty string.

ArgumentNullException

name is null.

No action is taken if the attribute that is identified by name does not exist on the current HTML element.

In Firefox, the attribute is not removed; instead, its value is set to null.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft