You will require both the OpenLayers and Proj4js libraries for this example to work
Example showing transformation to position Google maps using OS Eastings and Northings
The same coordinates on OS OpenSpace map