How to open maximized window with Javascript?

前端 未结 5 1414
独厮守ぢ
独厮守ぢ 2020-11-28 07:45

I\'m using Javascript\'s self.open() to open a link in a new window and i\'d like that window to be maximized. I tried the fullscreen=yes option, w

5条回答
  •  甜味超标
    2020-11-28 08:33

     window.open('your_url', 'popup_name','height=' + screen.height + ',width=' + screen.width + ',resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes')
    

提交回复
热议问题