Website Building » Wix » Can You Make a Pop-Up Window in Wix?

Can You Make a Pop-Up Window in Wix?

Last updated on January 6, 2023 @ 12:05 pm

Yes, you can make a pop-up window in Wix.

To do this, you’ll need to use the Wix HTML Editor. First, open the editor and click on the “Add” button. Then, select “HTML” from the list of options.

GREAT NEWS:

Exciting update! We've collaborated with Wix to offer WBI users with a free plan for all website creation needs - Explore the details here.

Once you’ve added the HTML element to your page, you’ll need to add the following code to it:

<script type="text/javascript">
function popup() {
var myWindow = window.open("", "", "width=200,height=100");
myWindow.document.write("<p>This is my popupwindow!</p>"); }
</script>
<a href="javascript:popup();">Click here to open the popup window!</a>
PRO TIP: Please be aware that creating a pop-up window in Wix can be problematic and may not work as expected. If you are planning on using a pop-up window on your Wix site, we recommend testing it thoroughly before making it live.

This code will create a pop-up window that says “This is my popup window!” when you click on the link.

You can customize the width and height of the window by changing the “width” and “height” values in the code.

Conclusion: You can make a pop-up window in Wix by using the Wix HTML Editor and adding a bit of code. You can also style your text using HTML tags.

Morgan Bash

Morgan Bash

Technology enthusiast and Co-Founder of Women Coders SF.