---
id: fast-foundation.button.autofocus
title: Button.autofocus property
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-foundation](./fast-foundation.md) &gt; [Button](./fast-foundation.button.md) &gt; [autofocus](./fast-foundation.button.autofocus.md)

## Button.autofocus property

Determines if the element should receive document focus on page load.

<b>Signature:</b>

```typescript
autofocus: boolean;
```

## Remarks

HTML Attribute: autofocus
