https://www.hardware.com.br/comunidade/v-t/1416572
Como fechar popup com timer depois de aberta por um Javascript?