Answer the question
In order to leave comments, you need to log in
How to implement the opening of the form when entering the site?
I have fancy box
jQuery(document).ready(function() {
jQuery('.popul_item').click(function () {
jQuery(this).parents('form').submit();
});
jQuery.fancybox.open({
padding : [0, 0, 20, 0],
helpers: {
overlay: {
locked: false
}
},
wrapCSS : "fancy--rajon",
href: "#sel--rajon"
});
Answer the question
In order to leave comments, you need to log in
You need to write the flag to the cookie or localStorage (preferably a cookie) and check for its presence every time you visit the page. If there is a flag, we do not show the window, if not, we show it.
Set the cookie and check it, if there is then do not show the window.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question