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
精彩评论