1.在原窗口打开链接
<input type="button" value="闪吧" onClick="location='http://www.flash8.net'">
<button onClick="location.href='http://www.flash8.net'">闪吧</button>
<form action="http://www.flash8.net"><input type="submit" value="打开链接"></form>
2.在新窗口中打开链接
<input type="button" value="闪吧" onClick="window.open('http://www.flash8.net')">
<button onClick="window.open('http://www.flash8.net')">闪吧</button>
<form action="http://www.flash8.net" target="_blank"><input type="submit" value="打开链接"></form>
如:
<button onClick="this.innerHTML='<font color=\'red\'>http://www.flash8.net</font>'">闪吧</button>
或
<button onClick='this.innerHTML="<font color=\"red\">http://www.flash8.net</font>"'>闪吧</button>