改成sumbit按钮更直接,不用写什么函数,要么就做超链接,做成按钮样式的图形

解决方案 »

  1.   

    什么onclick行不通?<input type="button" value="阅览" onclick="window.location='a.html'" />
      

  2.   

    <input   type="button"   value="阅览"   onclick="window.location='a.html'"   /> 
    我onclick调用的是javascript函数 onclick="check();"
      

  3.   

    用这一个<input   type="button"   value="阅览"   onclick="window.location='要跳转的页面.html'"   /> 
    或者用一个表单,表单里的action="要跳转的页面.html"再把<input   type="button"改为submit就可以了
      

  4.   

    <input type="button" value="阅览" onclick="check()"/>function check()
    {
        location.href = 'a.html';
    }   
      

  5.   

    <input   type="button"   value="阅览"   onclick="check() 
    { window.location.href="http://www.hao123.com"; 
    } "/> 
    <input   type="button"   value="阅览"   onclick="check() 
    { window.location.href="http://www.hao123.com"; 
    } "/> 
      

  6.   

    check()函数的最后加
    window.location.href="a.html";