I use the code below to resize my popup windows.
I would like to change it so that if the open window is already larger that the current size, it doesn't do anything.
Can anyone help?
I would like to change it so that if the open window is already larger that the current size, it doesn't do anything.
Can anyone help?
Code:
<script type="text/javascript">
ResizeTo(100, 100);
</script>
function ResizeTo( intWidth, intHeight) {
if (parseInt(navigator.appVersion)>3) {
if (navigator.appName=="Netscape") {
top.outerWidth=intWidth;
top.outerHeight=intHeight;
}
if (navigator.appName=="Safari") {
self.resizeTo(screen.availWidth=960,screen.availHeight=700);
top.outerWidth=intWidth;
top.outerHeight=intHeight;
}
else top.resizeTo(intWidth,intHeight);
}
}