www.webdeveloper.com
Results 1 to 2 of 2

Thread: Sending alert for saving their information

  1. #1
    Join Date
    Mar 2010
    Posts
    2

    Sending alert for saving their information

    Is it possible to display alert to the user to save their information without activating an event. Saying in five minutes or ten minute alerting the user to save their information.

    Thanks,

  2. #2
    Join Date
    Feb 2010
    Location
    Amsterdam
    Posts
    174
    sure you can use the window.onload event which runs after the page has been loaded

    Code:
    window.onload = function(){
    // create a global variabele and assign that a setInterval
    var minute = 1000 * 60;
    window.interval = setInterval(function(){ alert('save your info'); }, minute*5);//5 min
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles