Let us scrutinize the following form, and see some experiments in Firefox and Opera respectively.
Incidentally, it has been checked that using
type='number' does not
coerce the entered number to be
of type integer. You must do this "manually"
by passing in through Number().