window.location.target="_blank";  
    window.location.href("http://www.stxdalian.com");
 "_blank为什么放在asp.net里不好用

解决方案 »

  1.   

    asp.net  一样可以用 _blank啊
      

  2.   

    好用的,设置form的target属性就好
      

  3.   

    window.location.target="_blank";  
        window.location.href("http://www.stxdalian.com"); 
    这样写法在.html中也不管用。
    你只能用window.open
    或是动态的建一个<a href,指定它的target,再触发它的click事件
      

  4.   

    没有问题就是那个_blank不好用,但是asp.net里用window.open不好用呀,打不开窗体
      

  5.   

    这个属性,我只在<a href="#" target="_blank">标签里使用过,
    脚本的话,直接用window.open好了
      

  6.   

    如果是连接用 <a href="http://www.stxdalian.com" target="_blank"> 
    脚本的话,直接用window.open
      

  7.   

    window.open为什么在asp.net里不好用呢