Adding a pop window?

Hi All,
New user here and was wondering if there is a way to add a pop up window upon entering the site without having to click on a button? Any help would be greatly appreciated.

There are several ways to do this. If you want a simple window, you can use some simple JavaScript. Add this to your header area in Blocs by going to Page Settings > Add Code:

<SCRIPT TYPE="text/javascript"> alert("sometext"); </SCRIPT>

A small window will pop up with your text. You can also try window.confirm("yourtext"); or window.prompt("sometext","defaultText"); for other types of pop up boxes.

If you want to define how your box looks, you can use CSS and JavaScript for that. It’s a little more complicated, but if you want to do that, you can find instructions here.

1 Like