代码如下: <button style="width:300;height:90;background:transparent; margin:0px; border:0px;padding:0px;cursor:hand" onclick="window.location.href=' www.baidu.com/'"></button>
1.è¶ é¾æ¥<a href="http://www.jb51.net" title="èæ¬ä¹å®¶">Welcome</a>
çæäºjs代ç
window.location.href="http://www.jb51.net"; //å¨åå½åçªå£ä¸æå¼çªå£
2.è¶ é¾æ¥<a href="http://www.jb51.net" title="èæ¬ä¹å®¶" target="_blank">Welcome</a>
çæäºjs代ç
window.open("http://www.jb51.net"); //å¨å¦å¤æ°å»ºçªå£ä¸æå¼çªå£