I have a button in HTML:
<button type="button" id="id" onClick="function()">text</button>
The function simply alters the CSS and text of some HTML elements.
How do I, by default every time the page loads, "click" on the button with Javascript, without the user having to click on the button first?
Thanks in advance.