Its the way that netscape deals with positioning mate.
In the settings variable that you are using to declare window features, there is one difference between browsers. IE uses top= and left= but Netscape uses screenX= and screenY= -- so you need to list both to catch all browsers.
Code:
function NewWindow(mypage,myname,w,h,scroll,resize){
< !-- if browser is IE //-- >
if (document.all){
LeftPosition = (screen.width)? (screen.width-w)/2 : 0;
TopPosition = (screen.height)? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable='+resize+',status'
window.open(mypage,myname,settings)
}
< !-- browser = NS6 //-- >
else {
LeftPosition = (screen.width)? (screen.width-w)/2 : 0;
TopPosition = (screen.height)? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',screenX='+TopPosition+',screenY='+LeftPosition+',scrollbars='+scroll+',resizable='+resize+',status'
window.open(mypage,myname,settings)
}
}
I don't think this code works 100% but it will give you an idea on how to do it.
Hope this helps.
Social Networking Bookmarks