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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…