跳转

<input type="text" id="urlData" placeholder="请输入链接" onclick="">
<button onclick="window.location.href = urlData.value">跳转</button>