---
id: fast-element.syntheticview.insertbefore
title: SyntheticView.insertBefore() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-element](./fast-element.md) &gt; [SyntheticView](./fast-element.syntheticview.md) &gt; [insertBefore](./fast-element.syntheticview.insertbefore.md)

## SyntheticView.insertBefore() method

Inserts the view's DOM nodes before the referenced node.

<b>Signature:</b>

```typescript
insertBefore(node: Node): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  node | Node | The node to insert the view's DOM before. |

<b>Returns:</b>

void
