The HTML5 Form Element, New Input Types

Let us scrutinize the following form, and see some experiments in Firefox and Opera respectively.

Example 9.4. The Page js101.html
<xi:include></xi:include>

Click here!


Example 9.5. The JavaScript js101.js
<xi:include></xi:include>

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().