I’m having problems getting a window to open on IE 5 on a mac. The window should open at 800×600 and be centered to the screen. It should display a frameset but instead appears blank? If I close it and load it again the content (usually) appears. The code for this is below.
[code=php]
w = window.screen.availWidth;
h = window.screen.availHeight;
window.resizeTo(w,h);
window.moveTo(0,0);
function openWindow(theURL){
theLeft=(w/2)-400;
theTop=(h/2)-300;
features = ‘resizable=yes,width=800,height=600, left=’ + theLeft + ‘, top=’ + theTop;
theWin = window.open(theURL,’main’,features);
}
//–>
</script>
</head>
<body>
<table width=”100%” height=”300″ border=”0″>
<tr align=”center” valign=”middle”>
<td class=”DVtitle”>DV Assets: Animals </td>
</tr>
<tr>
<td align=”center” valign=”middle”><a href=”javascript:;” onClick=”openWindow(‘pages/dv_animals.htm’);”><img src=”Images/splashlogo.gif” width=”477″ height=”145″ border=”0″></a></td>
</tr>
</table>
</body>
</html>
I’m pretty new to javascript (and building websites) but any help with this would be really appreciated. I did do a search but couldn’t come up with a solution.
ta,
jbw