
Originally Posted by
NTV
What's this about?
If you want a browser-type window use something such as
PHP Code:
function popupwindow(url, title, w, h) {
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
}
Source: javascript - Center a popup window on screen? - Stack Overflow
Sorry I didn't really think the word 'Window' through that much, I was thinking of a basic text window (I'm tired xD)