---
name: "up.modal.visit"
area: "API"
kind: "JavaScript function"
parent: "up.layer module"
visibility: "deprecated"
url: "https://unpoly.com/api/up.modal.visit"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.layer module](https://unpoly.com/api/up.layer.md)</nav>

# up.modal.visit(url, options)

**This feature has been deprecated**. Use [`up.layer.open({ url, mode: &quot;modal&quot; })`](https://unpoly.com/api/up.layer.open.md) instead.

Load [`unpoly-migrate.js`](https://unpoly.com/changes/upgrading.md) to polyfill deprecated features.

Opens a modal overlay for the given URL.

---

## Parameters {#parameters}

### url {#url}

(required)

The URL to load.

Type: string

### options {#options}

(required)

See options for [`up.render()`](https://unpoly.com/api/up.render.md).

Type: [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Working_with_Objects)

