Actions question


(Chris Ferne) #1

I have a button on a page that links to another page on site; the second page appears in its own window but I want to set the size of that window - how do I do it?
The second page also needs a button which will close it - I can make the button but how do I set it to close the window?


(Doug Bennett) #2

What you’re describing is called a modal box or modal window. It’s actually not a separate page but created with HTML, CSS and JavaScript placed on the same page.
You can learn more about modal boxes here:
https://www.w3schools.com/howto/howto_css_modals.asp

If you’re using a stacks page there’s quite a few modal addons available.
Stacks 4 stacks has a few options one being topbox .
https://stacks4stacks.com/topbox/


(Chris Ferne) #3

Thanks, Doug! I’ll give that a try.