I have a form with an input field , input field is attached a focus out event handler 
I have also a form submit handler attached with the form, so when user focus out of input box then its 
focus out handler executes that's fine but when form is submitted then also focus out event on input box is fired. So how can i prevent this?

Help is appreciated :)

```
Demo code
<form>
    <input type='text' name='test'/>
</form>

$('input').focusout(function(){
alert('focus out');
});

$('form').submit(function(){
    alert('form submitted');
    return false;
});

```

when i run above code in firefox and chrome output is different
**firefox** : *focus out is alerted first followed by form submitted*
**chrome** : *form submitted is alerted first followed by focus out*
why is it behaving differently in both browser , i want to prevent focus out on form submit .