How do I use hour glass in java script?
I have a jsp page, I'm calling in the javascript when I click the submit button like below.
function show(table)
{
document.forms["form1"].action ="employee.do?";
document.forms["form1"].submit();
document.forms.style.cursor = 'wait';
}
jsp Page:
<html:form action ="/doemployee" method ="post">
<table>
<tr>
<td>
<input type="button" name="emp" value ="empdetails" onclick="show('dept')" class="boxStyle" />
</td>
</tr>
</table>
But it is not changing to hour galss.
How would do I change to hour glass when I click the submit button?
thanks
</html>