Design a HTML web page for license plate input

The HTML page used to receive license plate data can be configured with one or more scan fields. Below is an example with 2:
     
<html>
<head>
<script type="text/javascript">
  function onscan(platedata) {
    alert( "License plate result : " + platedata );
  }
  function startscan(platefield) {
    window.location = "readplate://"+platefield;
  }
</script>
</head>
<body>
 <h3>Enter license plate data:</h3>
 <input id="platefield1" /><br />

 <input id="platefield2" /><br />

 <input onclick="startscan('platefield1')"
     type="button"
     value="Start scanning field 1" />
 <input onclick="startscan('platefield2')"
     type="button"
     value="Start scanning field 2" />
</body>
</html>
Function onscan() is optional, and can be called, when a scan has been completed. Replace alert() with code updating the server with the scan code.

As to start a scan from the HTML page, and not using the menu "Scan", it is important to use the location URL readplate://. This name is fixed, and cannot be changed. Give the barcode input field as parameter to the call. In the example platefield1 and platefield2 are used.

If the menu "Scan" is used, the scan data will be send to an input field name platefield1. This name is fixed, and cannot be changed.