2个回答
2018-02-10
展开全部
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>test</title>
</head>
<body>
<button onClick="jump()">提交</button>
<input type="text" id='url'/>
<script>
var url = document.getElementById('url');
function jump(){
window.location.href = url.value;
}
</script>
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询