Use screen.availWidth
and screen.availHeight
to calculate a suitable size for the height and width parameters in window.open()
Although this is likely to be close, it will not be maximised, nor accurate for everyone, especially if all the toolbars are shown.