I am developing a small Embedded webserver with some webpages written in CGI, so that whenever I execute a CGI, the code in Webserver will be executed and HTML content is sent to browser. Now if I press refresh continusly only half the page is being displayed on the browser. I have kept a div tag with and Id, so if id is not present i should clear all the HTML content on the browser and reload the same page again.
Now i could not clear the HTML content before reloading the page(because the time to make the request and reload the page is more). So please give me a solution to clear content the HTML page, and reload the page again.
Thanks in advance