I want to execute a Javascript when user set a focus on the submit button.
<input type="submit" id="submit" value="Submit" onfocus="onFocusSubmit()">
But on Safari browser, the event never gets called. I have tried onMouseOver
event, which works perfectly well, and I have tried other browsers like Chrome, which also does not have a problem.
Does anybody know a way around this problem?