Hi everyone,
I have the following javascript on my page:
<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name',top='+Math.floor(screen.height/2-h/2)+',left='+Math.floor(screen.width/2-w/2)+','resizable = yes', height=900, width=1440);
if (window.focus) {newwindow.focus()}
return false;
}
// -->
</script>
Following this, I have 4 links that pop up 4 different windows. Two of the windows contain videos and the other two contain flash animations. For some reason, in Internet Explorer, the two windows that contain videos do not pop up new windows. Instead, the original window displays the video.
The code works fine in both Firefox and Safari. Can anyone tell me what I need to modify so that it works in IE as well?
I have the following javascript on my page:
<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name',top='+Math.floor(screen.height/2-h/2)+',left='+Math.floor(screen.width/2-w/2)+','resizable = yes', height=900, width=1440);
if (window.focus) {newwindow.focus()}
return false;
}
// -->
</script>
Following this, I have 4 links that pop up 4 different windows. Two of the windows contain videos and the other two contain flash animations. For some reason, in Internet Explorer, the two windows that contain videos do not pop up new windows. Instead, the original window displays the video.
The code works fine in both Firefox and Safari. Can anyone tell me what I need to modify so that it works in IE as well?