HTML page reloads after dynamic change
Hello, I am editing an Html page that needs to be updated based on the button pressed by the user. I.E. if the user clicks a "Show" button, the page needs to create dynamically a table showing some values on a JS object .
The problem is, the dynamical table creation goes ok, but after about a second , the table disappears from the page , as if the page itself has reloaded (in effect it HAS reloaded) losing reference to the dynamically added table object.
What can I do to avoid this unexpected reload of the page, so to keep the dynamically created object on the page itself ? And more, why does the page reload after the call to "document.body.appendChild(..)" I use to add the table ?