还可以用window.open()
window.open("http://www.csdn.net","_self")

解决方案 »

  1.   

    谢谢楼上的,这个问题已经解决了,
    还可以用location.href("http://www.csdn.net");
    还有一个问题,就是我现在的页面分成了3部分,我的js在页面的左面,现在要把新的页面显示在右面,就像csdn的导航页面一样?
      

  2.   

    <a href="javascript:void window.open('http://www.163.com','_self')">163.com</a>
      

  3.   

    <a href="javascript: window.open('http://www.163.com', 'RightFrameName')">163.com</a>
      

  4.   

    <a href="www.csdn.net" target="页面右边得名字">163.com</a>