- 实现指定页面跳转
<input type="button" value="我是一个按钮"
"javascrtpt:window.location.href='http://blog.sina.com.cn/mleavs'">
- 实现跳转至某函数
<script>
function jump(){
window.location.href="http://blog.sina.com.cn/mleavs";
}
</script>
……
<input type="button" value="我是一个按钮" “javascrtpt:jump()”>