Viewing an older version of mapbox.js. Check out v1.4.0 for the latest.

Geocoding

Using the MapBox Geocoding API
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Geocoding</title>
  <script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.js'></script>
  <link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.7/mapbox.css' rel='stylesheet' />
  <style>
    body { margin:0; padding:0; }
    #map { position:absolute; top:0; bottom:0; width:100%; }
  </style>
</head>
<body>
<style>
#form {
    position:absolute;
    top:10px;
    right:10px;
    padding:10px;
    background:#fff;
    z-index:100;
}
#form input {
    padding:5px;
    height:20px;
}
</style>

<form id='form'>
    <input type='text' id='geolocate' />
    <input type='submit' value='go' />
</form>
<div id='map'></div>
<script>
    mapbox.auto('map', 'examples.map-vyofok3q', function(map) {
        document.getElementById('form').onsubmit = function() {
            wax.tilejson('http://api.tiles.mapbox.com/v3/examples.map-vyofok3q/geocode/' +
            encodeURIComponent(document.getElementById('geolocate').value) + '.json', function(center) {
                if (center && center.results && center.results.length) {
                    map.zoom(6).center(center.results[0][0]);
                }
            });
            return false;
        };
    });
</script>
The code and documentation to mapbox.js is hosted on GitHub where you can contribute changes and improvements.