function findProject(){ document.location = '/' + document.getElementById('projectId').value; }

Example