<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>无标题页</title>
</head>
<body>
<form id="form1">
<div>
<input id="Button1" type="button" value="网易" onclick="location.href='http://www.163.com'" />
</div>
</form>
</body>
</html>
HTML按钮实现网页跳转
本文介绍了一种使用HTML按钮触发网页跳转的方法。通过设置按钮的onclick属性为location.href,可以实现在点击按钮时跳转到指定的URL地址。
2199

被折叠的 条评论
为什么被折叠?



