Website Building » Squarespace » Can I Create a Pop-Up Window in Squarespace?

Can I Create a Pop-Up Window in Squarespace?

Last updated on October 1, 2022 @ 10:12 am

You can create a pop-up window in Squarespace by using the following code:

PRO TIP: Pop-ups can be intrusive and annoying. They might not be allowed on Squarespace, and if they are, you run the risk of people leaving your site because they don’t want to be bothered.

<!– Create a link that will open a popup window –>
<a href=”javascript:void(0)” onclick=”window.open(‘https://www.example.com/popup-window.html’, ‘Popup Window’, ‘width=600,height=400’);”>
Click Here to Open a Popup Window</a>

This code will create a link that, when clicked, will open a popup window with the specified width and height. You can adjust the width and height values to suit your needs.

Drew Clemente

Drew Clemente

Devops & Sysadmin engineer. I basically build infrastructure online.