Browsing articles tagged with "popup com tempo - ericluciano.com"
Ago 2, 2011
eric

Janela PopUp com tempo

O JavaScript abaixo é bem simples de entender, ele serve para você abrir e fechar uma popup com um determinando tempo.
Obs* Troque o URL pelo link do Popup que vc quer abrir.

var intervalo;
window.setInterval(openPopup,50000);
window.setInterval(closePopup,60000);

function openPopup()
{
 my_pop = window.open('url','janPop','width=600,height=100');
}
function closePopup(){ my_pop.close(); }