IE下window.open报参数无效错误!
<a href="javascript:void(0)" onclick="window.open(‘/test.php?id=1′,’test-php’,'height=300,width=300,top=0,left=0′)">test</a>
这段代码在Firefox下是可以打开新窗口的
在IE下会报参数无效错误
将test-php改为testphp
只要去掉横杠即可!
后记:经过楼下几位的指点
明白了原来"-"是特殊符号!
<a href="javascript:void(0)" onclick="window.open(‘/test.php?id=1′,’test-php’,'height=300,width=300,top=0,left=0′)">test</a>
这段代码在Firefox下是可以打开新窗口的
在IE下会报参数无效错误
将test-php改为testphp
只要去掉横杠即可!
后记:经过楼下几位的指点
明白了原来"-"是特殊符号!