Link to home
Start Free TrialLog in
Avatar of ct8270
ct8270

asked on

Disable or delay a submit button until page refresh on mouseover completes.

I have a form that has a submit button with a mouseover page refresh. I need the submit button delayed until after the mouseover page refresh is finished so the user cannot click the button until the page completely refreshes.
Avatar of stanscott2
stanscott2

It you were to set up a button like this:

<input type="button" value="Submit" onmouseover="this.disabled=true;">

The button would become disabled as soon you moused over it.

Avatar of ct8270

ASKER

Actually I am already reloading the page on mouseover. ' onMouseover="javascript:self.location.reload()" '

What I need is for the button to be delayed or disabled until after that reload takes place.
ASKER CERTIFIED SOLUTION
Avatar of stanscott2
stanscott2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial