How to automatically update a web browser?

Let's say I want to run a simple Python script, which is a web server. And I want to connect a browser to it that updates every N seconds, i.e. The page is being updated. How can I do it?

I assume that the Python script server will generate HTML code containing javascript that sleeps and forces updates? Or can the browser update?

Thanks in advance.

+5
source share
5 answers
<meta http-equiv="refresh" content="5" />

This will reload the page after 5 seconds.

+11
source

, , , . , , , AJAX. . , , , AJAX -, .

AJAX . IE6, , . :

  • XMLHTTPRequest.
  • URL-, , ( XML).
  • , .
  • .
+5

<meta http-equiv="refresh" content="5" />

5 .

+2
source

You can use META-Tag to update or use javascript. But you must make sure that the parameters in the URL are handled correctly and that you do not update the POST actions if you are not going to.

+1
source

Use the meta refresh tag . Although I would be very surprised if the web page suddenly refreshed on its own. Some AJAXy materials will be much more useful.

0
source

All Articles