I'm using showModalDialog. I want to center the popup screen. I'm doing this, which works fine using FireFox and Chrome:
width = 800; height = 500;
top = screen.height / 2 - (height / 2);
left = screen.width / 2 - (width / 2);
However, IE fails on screen.height (it does not fail on screen.width.. weird).
Any ideas on this? Is there a workaround for screen.height using IE? Or a more general way to center a popup?