Skip to content

Instantly share code, notes, and snippets.

@rafinkarki
Created April 21, 2016 03:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafinkarki/7cab86cb9357a734d720bdfb0df0fa4d to your computer and use it in GitHub Desktop.
Save rafinkarki/7cab86cb9357a734d720bdfb0df0fa4d to your computer and use it in GitHub Desktop.
popup display after certain time interval
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