How would I call a javascript function in html?
In order to call the function on page loading just simply call the function in the script section. Use inner HTML to display. Make the code easy and simple. Here is the script: You can also write the function like this: The HTML section: This will help you: Click to see this fiddle This link … Read more