Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javascript pop up problem in IE

Status
Not open for further replies.

parkwood

Programmer
Aug 28, 2008
1
AU
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?
 
You should remove the 'name' param and leave it blank (i.e. replace 'name' with '').

If you specify the same window name, the windows will be re-used.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top