---
title: "getAttribute(_:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/domelement/getattribute(_:)"
---

# getAttribute(_:)

## Declaration

```swift
func getAttribute(_ name: String!) -> String!
```
