Change The Size Of A Mac Window With JavaScript

This works with one way to make the change but there's a second way as well