About 2,480,000 results
Open links in new tab
  1. javascript - Change label text every two seconds and wait …

    Apr 23, 2015 · setTimeout is asynchronous. your 2 loops just run in a blink and set all those timeouts which just fire simultaneously after 2 seconds. –

  2. javascript - how to refresh the asp.net Label every second ...

    Oct 7, 2010 · Put this at the end of your page and replace Label1 with the name of your Label for a nice working digital clock: document.getElementById('<%= Label1.ClientID %>').innerHTML = new Date(); . // replace new Date() with your updated value. setTimeout("updateLabel()",1000);

  3. html - Javascript want to have a label that you can check for auto ...

    May 23, 2020 · Here's a basic example of how to load data every second using fetch, then updating the DOM. You need to adapt this to your needs.

  4. How to auto-reload a Page every N seconds using JavaScript

    Mar 7, 2024 · To auto-reload a page every N seconds in JavaScript: Use the setInterval() method to run a function every 1000 milliseconds. Declare a timer variable that gets incremented every second. Once the timer variable reaches the given number of seconds, call the window.location.reload() method. Here is the HTML for the example.

  5. How To Refresh The Label Every Second Automatically Using JavaScript ...

    Javascript - Lose The Ajax-SliderExtender After Page Refresh? Nov 30, 2010. I'm using a Ajax SliderExtender in a UpdatePanel. I set a BehaviorID and call $find('behavorID').add_valueChanged function in the $document.Ready. Everything is fine but when I press F5 and refresh the page, I lose the slider in a 1/3 (wtf) chance.

  6. Automatically Refresh HTML page or div after some Interval

    In this post, I will let you know how to refresh HTML page after some time interval automatically. There are so many ways to refresh page after defined time interval. You can use the JavaScript function location.reload() to refresh active page. Example 1: Reload page using JavaScrip setTimeout Method

  7. How to Auto-Refresh a Page Every N Seconds in JavaScript

    Dec 24, 2023 · Do you want your web page to auto-refresh or reload itself every few seconds? This can be useful for dashboards, monitoring pages, or any other page where you want to show frequently updated content. In this article, I’ll explain two easy ways to make a page auto-refresh using plain JavaScript.

  8. javascript - how to refresh page after certain amount of time in …

    Dec 8, 2015 · You can use the simple settimeout() function to delay a function after a certain amount of time. You can use location.reload(); to refresh a page, I use it myself after updating data. The delayinmiliseconds represents the amount of seconds you want before the page reloads. It is represented in milliseconds, so 1 seconds/1000.

  9. Auto-refresh DIV every few Seconds using JavaScript and Ajax

    In JavaScript, you can use the setInterval() function to call a method at a speficied interval to refresh a div element with new content using Ajax.

  10. JavaScript Timing Events - W3Schools

    The two key methods to use with JavaScript are: setTimeout(function, milliseconds) Executes a function, after waiting a specified number of milliseconds. setInterval(function, milliseconds) Same as setTimeout(), but repeats the execution of the function continuously.

Refresh