window.open(this.href,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=50,left=120,width=550,height=270')

解决方案 »

  1.   

    我倒, window.open里的参数格式全错了,少了引号
      

  2.   

    onClick="javascript:window.open(this.href,'_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=50,left=120,width=550,height=270')"
      

  3.   

    这样试试看:<a href="javascript:window.open('gatalog.aspx',_blank,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=50,left=120,width=550,height=270)"
        onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('imgGatalog','','../images/gatalog_on.gif',1)"><img src="../images/gatalog_off.gif" alt="新书编目" name="imgGatalog" width="85" height="19" border="0"></a>
      

  4.   

    哦,忘了说,我是把这个用在aspx文件里的。
      

  5.   

    To : walkingpoison(walkingpoison) 
        用你的脚本报错。To :  onestab(┼─)  AND  sdpong(耶和华) 
        用你们俩的脚本后,父窗口也打开了链接
      

  6.   

    还是帮忙帮到底吧:<a href="javascript:window.open('gatalog.aspx','_blank','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=50,left=120,width=550,height=270')"
        onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('imgGatalog','','../images/gatalog_on.gif',1)"><img src="../images/gatalog_off.gif" alt="新书编目" name="imgGatalog" width="85" height="19" border="0"></a>
      

  7.   

    是啊,点了后,父窗口莫名其妙地显示一串字符:“[object]”我头都大了。
      

  8.   

    <a href="#" onclick=="javascript:window.open('gatalog.aspx',.....