How can a JavaScript function in JSP be called during page load without using
I have to call this functio
Either use window.onload this way
or alternatively
(yes, without the parentheses)
Or just put the script at the very bottom of page, right before . At that point, all HTML DOM elements are ready to be accessed by document functions.
document
...