I would like to reload my page with javascript and then display a div.
The problem is that with the following code the div is displayed first and then the page reloads: