Can I use the onload and onclick events in the same anchor tag?

I had a requirement to load data from a database, when I click one jsp link and at boot time only it should retrieve data from the database

Here is my code, but it does not work

<td><a href="#" onclick="return popitup('jsp/menu/Equipment/Equipment11.jsp')" onload=document.form.submit()><s:label name="Equipment" value="Equipment" /></a></td>

The "Equipment" window will appear in my main screen, and when I click it, it will open a new window and at the time of its opening should launch a request to the class of actions and receive data from db and display this data on this equipment screen.

+3
source share
1 answer

You can have several events on one element. However, the anchor elements do not have a load case.

+6
source

All Articles