JavaScript 弹出窗口代码不能定义窗口大小?
函数代码:
<script language= "JavaScript ">
<!--实现特殊效果
function comOpen(fileOpen,w,h)
{
window.open(fileOpen, " ", "top=100,left=100,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width= '+w+ ',height= '+h+ ' ");
}
-->
</script>
调用代码:
javascript:comOpen( 'login.aspx ',200,100)
------解决方案--------------------(fileOpen, " ", "top=100,left=100,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width= "+w+ ",height= "+h+ ");