I want to ask a question about the Javascript’s onload.

I’m writing a JSP page with the code <%@ include file ="body.jsp". The included body.jsp contains:

<table onload="function()">

This should load the javascript function, but it doesn't appear to have any effect on the page. Is onload only usable on the body tag?

Edit
Report