I’ve got a problem with simple popup newsletter in homepage…
Basically after I close the popup, if I refresh homepage, popup appears for about one second then disappear.
This is the code:
function popup(){
$('.jsclosepoup').on('click', function() {
$('.jsengo_popup').addClass('d-none');
});
}
<section class="popup jsengo_popup">
<div class="modal-window">
<div class="window-window">
<div class="window-content clearfix">
<a class="close_edit jsclosepoup" title="Close" href="javascript:void(0)">ù
Something useful for Newsletter...
</a>
</div>
</div>
</div>
</section>
It seems that class "d-none" be applied only after all html loaded.
I would like to prevent newsletter appears for a second if I already close it….
2
Answers
Here the complete code I've found:
Just semplified code, but still appears for a little moment…
I don’t want appears again after closed…