Is JS popup w*h different than of in pixel?

hey folks,
i been working on JS popup. not a JS fan but as i was working. i see that the values of JS height and width is not as same given by css in pixel. is it so? how can i balance both i.e if 300 is in Js, it should be in CSS too

The size you specify when opening a new window in JavaScript will be bigger by some amount than the area available in the viewport to display your page once you open it. There is no way of knowing how big the difference will be because you have no way of knowing how much space the toolbars etc will take up because that is controlled by the operating system. So all that can be determined is that the viewport will be smaller than the window.

@Madisonjs. lol thnx but i want a simple english but urdu. being in Pakistan doesn’t mean i speak or understand urdu.lol

How he explained it is pretty simple english to begin with, but here is what he said translated into Urdu if that helps

ایک جاوا سکرپٹ window.open میں چوڑائی اور اونچائی مکمل نئی ونڈو کے پکسلز میں چوڑائی اور اونچائی ہیں. ایک بار آپ کو بند کھڑکیوں سرحد ، عنوان بار ، مینو بار ، ایڈریس بار ، ٹول بار کم کر دیتے ہیں ، درجہ بار وغیرہ آپ تو اس کھڑکی جس کا وہ حصہ جو سی ایس ایس کے ساتھ بات چیت کر سکتے ہیں کے ویو پورٹ لوڈ ملے.

The width and height in a JavaScript window.open are the width and height in pixels of the entire new window. Once you deduct off the windows border, title bar, menu bar, address bar, toolbar, status bar etc you then get the viewport size of that window which is the part that the CSS can interact with.

i didn’t got you. well can u tell me in simple english. 200*300px how much it will be in JS. just a example