@lesjoursfr/browser-tools
Preparing search index...
setAttribute
Function setAttribute
setAttribute
(
node
:
HTMLElement
,
attribute
:
string
,
value
:
string
|
null
,
)
:
HTMLElement
Set the given attribute. If the value is
null
the attribute will be removed.
Parameters
node
:
HTMLElement
attribute
:
string
value
:
string
|
null
Returns
HTMLElement
the element
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@lesjoursfr/browser-tools
Loading...
Set the given attribute. If the value is
nullthe attribute will be removed.