Prosty sposób na stworzenie pola tekstowego do akceptowania liczb tylko z maksymalną liczbą długości 13 cyfr i minuty 10

<input name="phoneNumber"
    oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);"
    type = "number"
    maxlength = "10"
 />
Abdulhakim Zeinu