Menu icon Foundation
body onload (auto pop-up) - modal/reveal

Need help. 

1. Can we automatically load a modal/reveal on a page? Sort of like a pop-up window.  For example, when visitor gets to the site, there'll be a pop-up to display special instructions, then click to go to a particular page.  Can this be done with Reveal?

2. And can it have a cookie script so that it loads only once in a visitor's browser?

Thanks for your help.

Rom

revealpop-upcookiemodal

Need help. 

1. Can we automatically load a modal/reveal on a page? Sort of like a pop-up window.  For example, when visitor gets to the site, there'll be a pop-up to display special instructions, then click to go to a particular page.  Can this be done with Reveal?

2. And can it have a cookie script so that it loads only once in a visitor's browser?

Thanks for your help.

Rom

Benoit Lemay 5 months ago

Hi!

1. You can use 

$('#element').foundation('open');

in a load or ready function (jquery)..  or just cal it at the end of your page.

2. Cookies are not framework related.. then you'll have to "use" your cms or javascript..