nectar
07-09-2003, 12:41 PM
Could someone do me the favour of looking at this script, played about with it, but no luck, cant get it to center and have the right size window...
This is called from flash
Thanks much appreciated
<SCRIPT LANGUAGE="JavaScript">
<!--
var newWin;
function openWindow1() {
var w = 760;
var h = 520;
var x = (screen.width-w)/2;
var y = (screen.height-h)/2;
var settings = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+w+',he ight='+h+',left='+x+',top='+y+'",
newWin=window.open("home.htm","home",settings);
newWin.focus()
}
-->
</script>
This is called from flash
Thanks much appreciated
<SCRIPT LANGUAGE="JavaScript">
<!--
var newWin;
function openWindow1() {
var w = 760;
var h = 520;
var x = (screen.width-w)/2;
var y = (screen.height-h)/2;
var settings = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+w+',he ight='+h+',left='+x+',top='+y+'",
newWin=window.open("home.htm","home",settings);
newWin.focus()
}
-->
</script>