Can I open windows of different sizes with one script?
Utter Java newbie here, so this may be a silly question, I don't know.
I have the following script, which opens a new window of a certain size. Is it possible to put variables in for height and width, so I can open windows of several different sizes with the same script? In which case, how? (And how do I call it?)
Thanks
--
<script language='javascript'>
//-- This function opens the new, empty window named floater.
function openWindow(url) {
winStats='toolbar=no,location=no,directories=no,menubar=no,'
winStats+='scrollbars=yes,width=400,height=400'
if (navigator.appName.indexOf("Microsoft")>=0) {
winStats+=',left=10,top=10'
}else{
winStats+=',screenX=10,screenY=10'
}
floater=window.open(url,"",winStats)
}
//-->
</script>

