F
franz
hallo everyone,
i have a popup window 500x400px centered in the middle of the screen
and inside it there's a mini-photogallery.
what i want is to click on a thumbnail and open in the same window a page
that is fullscreen big and move to co-ordinates (0,0)
I've written some code to do that:
<script language="JavaScript">
<!--
function resize_()
{
window.resizeTo(screen.width,screen.height)
moveTo(0,0)
}
-->
</script>
</head>
<body onload="javascript:resize_();">
but what i get from this is:
with IE: the windows moves to (0,0) and becomes bigger but not fullscreen
with FIREFOX: the window doesn't move and doesn't resize
Is there anyone who let me understand what's wrong with the code above?
Thanks a lot
i have a popup window 500x400px centered in the middle of the screen
and inside it there's a mini-photogallery.
what i want is to click on a thumbnail and open in the same window a page
that is fullscreen big and move to co-ordinates (0,0)
I've written some code to do that:
<script language="JavaScript">
<!--
function resize_()
{
window.resizeTo(screen.width,screen.height)
moveTo(0,0)
}
-->
</script>
</head>
<body onload="javascript:resize_();">
but what i get from this is:
with IE: the windows moves to (0,0) and becomes bigger but not fullscreen
with FIREFOX: the window doesn't move and doesn't resize
Is there anyone who let me understand what's wrong with the code above?
Thanks a lot