I've written a basic calendar using AJAX and implemented it into a jsp.
I've made it so an img button displays the calendar and allows the user to select whatever date they want.
The problem is that when the user selects the button
the page returns focus to the top. Obviously this would be a huge pain in the ars if the date is at the bottom of the page. What can I do so the focus remains on the element?