Can anyone help with a little problem?
I know how to position a window by pixel co-ordinates, but how can I position a window (say centered) no matter what the screen resolution is
Hope this is in the right forum![]()
Can anyone help with a little problem?
I know how to position a window by pixel co-ordinates, but how can I position a window (say centered) no matter what the screen resolution is
Hope this is in the right forum![]()
Have just worked it out![]()
Quite simple really. If anyones interested:
<script>
var w=(screen.width-400)/2;
var h=(screen.height-300)/2;
window.open("something.html", "", width=400, height=300, left="+w+", top="+h+"")
</script>
Bookmarks