I'm sorry if this question has been asked before,
I'm just curious with my code:
function showPopup(file,wdth,hght) {
//height = 768 width = 1024
var w = wdth;
var h = hght;
var winWidth = w+'px';
var winHeight = h+'px';
var winTop = (screen.height/2)-(h/2);
var winLeft = (screen.width/2)-(w/2);
window.open(file,'Upload','top='+winTop+',left='+winLeft+',width='+winWidth+',height='+winHeight+',toolbar=1,resizeable=1,statusbar=1,scrollbar=1,location=1, fullscreen=1');
}
Then I run it with HTML:
<input type="button" onClick="showPopup('preview.php', '1000', '1000')" value="Priview">
The opening window still donsn't have toolbar, statusbar, scrollbar, etc as I set inside my function.
Anybody help me what's wrong with my code? Thx