Created
April 21, 2016 03:33
-
-
Save rafinkarki/7cab86cb9357a734d720bdfb0df0fa4d to your computer and use it in GitHub Desktop.
popup display after certain time interval
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function call() { | |
//popup = window.open('http://www.google.co.in'); | |
$("#ouibounce-modal").show(); | |
setTimeout(wait, 1000); // closes the pop-up after 8 secs delay | |
} | |
function caller(){ | |
$("#ouibounce-modal").show(); | |
setInterval(call, 15000); // opens a pop-up on every 12th second | |
} | |
function wait() | |
{ | |
$("#ouibounce-modal").hide(); | |
} | |
onload=caller(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment