<a href="" id=mxh>mxh</a>
<input type=button onclick="document.all.mxh.href='http://www.csdn.net' document.all.mxh.click()" value="ok">

解决方案 »

  1.   

    <a href="" id=mxh>mxh</a>
    <input type=button onclick="document.all.mxh.href='http://www.csdn.net'" value="ok">
      

  2.   

    <a href="" id=mxh>mxh</a>
    <input type=button onclick="document.all.mxh.href='http://www.csdn.net';document.all.mxh.click()" value="ok">
      

  3.   

    <input type="button" onclick='javascript:form.action="a.jsp"'>
      

  4.   

    在onclick函数中将
    self.location.href=要连接的页面。
      

  5.   

    在A.html写入链接<a href="b.htm?id=abcdefg>指向b页面</a>
    想在b.html中获取abcdefg这个数据,用javascript应该怎么写?
    request(id)?
      

  6.   

    <input type=button onclick="javascript:self.location.href=http://www.sexhu.com">