<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
//1.在原来的页面中打开:
<input type="button" οnclick="window.location.href('xxx.cn')"> //IE中使用"location.href='a.html'" firefox中使用
<a href="b.html"><input type="button" name="test" value="test" /></a>
//2.打开新的页面:
<input type="button" οnclick="window.open('xxx.cn')"> 3.使用script
<script>
function btn_onclick() {
window.location = "home.html";
}
</script>
<button class="ui-btn ui-btn-primary" οnclick="btn_onclick()">回首页</button>
</body>
</html>