Click to See Complete Forum and Search --> : javascript broswer window control


malecon
03-20-2003, 04:45 PM
When working with thumbnails in a normal html file, I would include some script like this -

"window.open('Images/Photos/25482-03-opt30.jpg','_blank','height=500,width=500,scrollbars,resizable'; return false;"

- to control the new window being opened.

I need a stand alone version

How do I include similar javascript in a html file so that everytime that html file opens, it follows the rules and opens to a specified size and place and scroll bars etc.

So regardless of where it is linked from it will always opens to this predescribed format.

I hope that makes sense

Thanks

_______

angrytuna
03-20-2003, 05:04 PM
Are you looking for something like this:

<html>
<head>
<script language="Javascript">
window.resizeTo(500,500);
window.moveTo(50,50);
</script>
</head>
<body>
Hello World!
</body>
<html>





AT

malecon
03-20-2003, 06:01 PM
that was exactly what i needed to know, thanks, that is now registered in long term memory