user838921
user838921

Reputation:

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);
}
//-->
</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>

Upvotes: 0

Views: 351

Answers (1)

Dr.Molle
Dr.Molle

Reputation: 117314

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

Upvotes: 1

Related Questions