How To Get Input From User Using Javascript For Navigation