You could use setTimeout
or setInterval
(the latter is probably best suited to what you want to do).
setInterval(makeRequest, (10 * 1000));
…where makeRequest
is a function that reloads some content via AJAX.
More Related Contents:
- Response to preflight request doesn’t pass access control check
- URL Encode a string in jQuery for an AJAX request
- How to make a jsonp POST request that specifies contentType with jQuery?
- How to intercept all http requests including form submits
- Pure JavaScript code for HTTP Basic Authentication?
- What’s to stop malicious code from spoofing the “Origin” header to exploit CORS?
- Add CORS header to an http request using Ajax
- Accessing partial response using AJAX or WebSockets?
- How to make page loaders/animations/transitions
- Better to have ajax inside or outside for-loop or for-loop at the server side? Javascript [closed]
- How to manage a redirect request after a jQuery Ajax call
- Can scrapy be used to scrape dynamic content from websites that are using AJAX?
- jQuery XML error ‘ No ‘Access-Control-Allow-Origin’ header is present on the requested resource.’
- How to get progress from XMLHttpRequest
- JavaScript/jQuery to download file via POST with JSON data
- Calling a JavaScript function returned from an Ajax response
- Setting query string using Fetch GET request
- get client time zone from browser [duplicate]
- Using raw image data from ajax request for data URI
- How can i load a set number of rows from a table on pageload and only load further rows when the user loads them?
- Cross-site XMLHttpRequest
- How do you make javascript code execute *in order*
- Abort new AJAX request before completing the previous one
- How do I pass along variables with XMLHTTPRequest
- Why does Google prepend while(1); to their JSON responses?
- C# MVC Controller cannot get decimal or double values from Ajax POST request
- Google Adwords CSP (content security policy) img-src
- Img src path with header params to pass
- Like button Ajax in Ruby on Rails
- creating highchart with ajax json data