---
# System prepended metadata

title: DOM Lock
tags: [zeta-dom]

---

---
tags: zeta-dom
---

# DOM Lock

## Prevent from leaving

```typescript
dom.lock(element, promise, onCancel)
```

## domLock

### `lock`
### `locked`
### `cancelLock`