Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 945251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:43:23+00:00 2026-05-15T22:43:23+00:00

So ideally here is what I am trying to accomplish (keep in mind I

  • 0

So ideally here is what I am trying to accomplish (keep in mind I am a beginner, so bear with me):

Creating an app that at interval x (let’s play with interval x = 15 minutes) a notification pops up prompting the user the take action. So every 15 minutes, take action (so you know, to alert them, this will be a browser flash and a title flicker / change). If the user takes action, reset the timer for another x amount (again, lets play with x = 15 minutes). If they don’t take action, keep flashing browser window and changing title. Any suggestions on how to accomplish this? Thanks so much.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T22:43:24+00:00Added an answer on May 15, 2026 at 10:43 pm

    You’ll want to use setTimeout for this. There is another function, setInterval, but you don’t want the event to occur while the user has not yet clicked on the notification (ie, after 15 minutes a notification pops up, but if the user has not dismissed the notification, you don’t want the event to run again).

    setTimer works in the following way:

    setTimeout(code,millisec,lang)
    

    code is a reference to the function or the code to be executed.
    millisec is the number of milliseconds to wait before executing the code
    lang is optional. It is the scripting language: JScript, VBScript, or JavaScript

    for your purposes, you could use:

    function setNextTimeout() {
        // 15 minutes * 60 seconds * 1000 milliseconds
        var t=setTimeout("displayAlert()", 15 * 60 * 1000)
    }
    
    function displayAlert() {
        alert('I am displayed after 15 minutes!');
        setNextTimeout();
    }
    
    setNextTimeout();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ideally something I can plug and play pretty readily an quickly that supports GeoCoding
i hope i'm just doing something wrong here. Ideally i'm trying to open the
Here's what I'm trying to do. Let's say the user is looking at the
I am trying to refactor some code I wrote that uses IndexedDb. Ideally what
Here's an excerpt from a book I'm reading about application design with MVC: Ideally,
Ideally, I'd like a module or library that doesn't require superuser access to install;
Ideally, im trying to click a div, find the next class within a parent.
I'm trying to develop a framework for several applications we are developing here and
I am trying to animate a couple of images across a screen. Ideally I
I am trying to get around a Cross Thread Exception, Invalid Object Exception. Here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.