开发者

Invalid argument for JS pop up in IE8

My popup definition doesn't work in IE8, but works in FF...

<script type="text/javascript">
<!--
function popUp(url, width, height)
{
 window.open(url, url, 'height=1024'+ height +'&width=768'+ width);
开发者_JAVA技巧}
//-->
</script>
<? if((int)$_GET[editcontent]!=0) { ?>
<script>  popUp("/refreshercms/structure/edit.php?pageid=<?=(int)$_GET[editcontent]?>");     </script>
<? } ?>

EDIT: fixed it.

<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=1280,width=1024');
}

// -->
</script>


the second parameter for open() may only contain chars allowed for #IDNAME

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜