文章讲解请参考我的百度空间: http://hi.baidu.com/lubintech/blog/item/6f6876d1e7a915d050da4b18.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> </head> <body> <ul> <li><a href="javascript:window.location.href = 'http://baidu.com'" mce_href="javascript:window.location.href = 'http://baidu.com'">例1:跳到百度</a></li> <li><a href="javascript:jumpTo('http://baidu.com')" mce_href="javascript:jumpTo('http://baidu.com')">例2:跳到百度</a></li> <li><button οnclick="jumpTo('http://baidu.com')">例3,跳到百度</button></li> <li><input type="button" οnclick="jumpTo('http://baidu.com')" value="例4,跳到百度" /></li> <li></li> <li><a href="javascript:window.location.href = window.location.href" mce_href="javascript:window.location.href = window.location.href">例6,刷新当前页面</a></li> <li><button οnclick="refresh()">例7,刷新当前页面度</button></li> <li></li> <li><input type="password" /></li>测试用。输入密码,刷新必须消失。 </ul> </body> </html> <mce:script type="text/jscript"><!-- function jumpTo(page) { window.location.href = page; } function refresh() { window.location.href = window.location.href; } // --></mce:script>