html中通过点击button标签实现页面跳转的三种办法
发布时间:09/01 来源:未知 浏览:
关键词:
办法1:运用onclick事件
或者直接运用button标签
(举荐教程:html教程)
办法2:在button标签外衣一个a标签
或运用
办法3:运用JavaScript函数
《script》 function jump(){ window.location.href="http://www.百度.com/"; } 《script》 // 或者 // 或者
更多编程相干内容,请关注 百分百源码网 编程入门栏目!
以上就是html中通过点击button标签实现页面跳转的三种办法的细致内容,更多请关注 百分百源码网 其它相干文章!