The NamedNodeMap.getNamedItem() method returns the Attr corresponding to the given name, or null if there is no corresponding attribute.


myAttr = attrs.getNamedItem(name)


  • name is the name of the desired attribute

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support ? ?34 ? ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support ? ? ?34 ? ? ?

Document Tags and Contributors

Contributors to this page: fscholz, teoli, rhoggSugarcrm
Last updated by: fscholz,