I am attempting to create a form on the page that requires the user to input text. Once the form is submitted, the user will then be redirected to the page assigned to it. My question is where am I going wrong and how should I resolve this issue? Could someone include a JSFiddle or Codepen.io pen for deminstration purposes?
<input id="projectid" maxlength="6">
<input onclick="findProject()" type="submit" value="Go">
document.location = document.getElementById('projectId').value();
/ before the url fragment
document.location = '/' + document.getElementById('projectId').value;