1
I have a pop-up and would like it to open after the user is already a while at given link.
My JS is like this:
if($('.popup-banner').length > 0) {
(window.location.href === '/')
$('.popup-banner .fechar, .popup-banner .link-fechar, .popup-overlay').click(function() {
$('.popup-overlay, .popup-banner').fadeOut(400);
});
}
Where do I put the delay?
Utilize
setTimeout( function() { /* Seu código */ }, delayEmMilissegundos);
– Valdeir Psr