RT,最好详细一点

解决方案 »

  1.   

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    <script>
    function init()
    {
    document.write('<a href="http://www.baidu.com"  target="_self">');
    document.write('百度');
    document.write('</a>');
    }</script>
    </head></body>
    </html>
    这是楼上的意思。是不是你要的就不知道了。。
      

  2.   


    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
      <script language="javaScript">
       function fn()
       {
    window.location.href="http://www.baidu.com";
       }
      </script>
     </head> <body >
       <input type="button" name="button" id="button" onclick="fn()"/>  
     </body>
    </html>页面跳转