Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses and challenges
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Calculator

0

48
Views
window.open with width and height open a window with NOT that actual width and height

In Javascript, when I use window.open("", "", "width=250, height=250"), the popup window is not actually sized at 250x250.

The best way to see this clearly is to compare against a div with width and height at 250x250 and simply drag the popup next to the div to see that it's not the same size.

https://cdpn.io/ianhd/debug/KKvqgve/yYMyLaQmoeLk

broken window open javascript visual

What am I missing?

7 months ago ยท Juan Pablo Isaza
Answer question
Find remote jobs