function go(uri) { try{ hello(); } catch ( e ) { ruri = location.protocol + "//" + location.hostname + uri; location.assign ( ruri ); } }