---
title: "How to open a pop-up window from a CTA button"
description: "You can set up CTA buttons in LandingRabbit to open modals with embedded content like forms or booking calendars."
url: "https://landingrabbit.com/documentation/open-modal-from-cta-button"
lang: "en"
---

# Can I open a pop-up window from a CTA button?

Yes, you can.

Any CTA button in LandingRabbit can open a pop-up/modal window instead of navigating to another page.

## How to set up a pop-up modal on a CTA button

Select the CTA button you want to edit.

In the editing panel, click the **Embed** tab.

![Screenshot of an embed code modal for adding a form or another embed on a website](https://d2txn9w4uujjus.cloudfront.net/images/019514e0-fe0a-7a1b-8ec6-a585eaf24e4d/1cd4697dd24d44b9bb263c292987bdd2b430d102.webp)

Add the content you want to display in the modal. This could be a HubSpot form, a Calendly calendar, YouTube video, or any other embed code.

Tick the checkbox to **Open in a modal**.

## What happens when someone clicks the button

When a page visitor clicks your button, the pop-up opens in the center of the screen.

![Signup form for LandingRabbit featuring fields for first name, last name, email, and website URL.](https://d2txn9w4uujjus.cloudfront.net/images/019514e0-fe0a-7a1b-8ec6-a585eaf24e4d/1ad084e2ff40bce79938bb57fd29a5489c595242--960w.jpg)

The embedded content, whether it's a form, calendar, video, or anything else, displays inside the modal.

Visitors can close the modal by clicking anywhere on the background or the X button in the top right corner.

Modals are useful when you want to capture leads or show additional content without sending visitors to a different page.

In addition to CTA buttons, [every image, video, and embed on your page can open a pop-up window](https://landingrabbit.com/documentation/open-images-and-videos-in-a-popup).
