---
title: "has_attribute method"
url: "https://reference.aspose.com/finance/python-net/aspose.finance.xbrl.dom.html/htmlscriptelement/has_attribute/"
product: "Aspose.Finance for Python via .NET API References"
---


## has_attribute(name) {#str}

Returns true when an attribute with a given name is specified on this element or has a default value, false otherwise.

### Returns 


True if has attribute with the name; otherwise, false.


```python
def has_attribute(self, name):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| name | str | The attribute name. |



### See Also
* module [aspose.finance.xbrl.dom.html](../../)
* class [HTMLScriptElement](/finance/python-net/aspose.finance.xbrl.dom.html/htmlscriptelement)
