# element.unmount()

> Use this method to unmount the Element instance from the DOM, but retain the instance so it can be mounted again.

Use this method to unmount the Element instance from the DOM, but retain the instance so it can be mounted again. Below states the difference between this method and [`element.destroy()`](https://docs.antom.com/ac/sdks/web_element-destroy.md):

-   `element.unmount()`: Unmounts but does not destroy the Element instance, it only removes it from the page. You can call [`element.mount()`](https://docs.antom.com/ac/sdks/web_element-mount.md) again to mount.
-   [`element.destroy()`](https://docs.antom.com/ac/sdks/web_element-destroy.md): Completely destroys the Element instance, releases resources, and cannot be used again.

> **Notes**:
>
> -   Repeated unmounting: Calling `element.unmount()` repeatedly will not cause an error, but the second call will have no effect.
> -   Automatic unmounting: When [`element.destroy()`](https://docs.antom.com/ac/sdks/web_element-destroy.md) is called, `element.unmount()` is automatically called first.

## **Method signature**

When calling this method, please use the following standard method signature format.

#### Tab: JavaScript

```javascript
element.unmount()
```

#### Tab: TypeScript

```typescript
element.unmount(): void
```

## Parameters

This method takes no input parameters.

## Return value

This method does not return any value.