JavaScript & HTML – Client Side Postcode Lookup

A collection of HTML and JavaScript code to demonstrate a few common postcode lookup options.

Download the code :

Download “Website Integration Pack” – 16 KBopen in new window

Contained in this pack are fully functional sample HTML pages. The sample code shows how to implement:

  • postcode > click > select the address
  • postcode + house name/number > click > select the address
  • parts of address > search > get full address & postcode
  • handling multiple address forms on one page

To get the maximum benefit from this code, you may want to have a look at the JavaScript Class User Guide and the generic JS integration tutorial.

We also have a few examples of implementing our UK Postcode Lookup on JSFiddle :