That is not something you would do JSP for. Please read
this article to understand how JSP operates.
In order to affect the page after it has been sent to the browser, you need to use on-page JavaScript. The fact that the HTML page was originally generated by JSP is irrelevant.