상세 컨텐츠

본문 제목

[javascript] 크롬에서 window.open의 fullscreen

헉!!/javascript

by 권태성 2013. 3. 12. 19:25

본문

IE에서는 window.open의 fullscreen 옵션이 잘 적용되는데 크롬에서는 제대로 작동하지 않아 아래와 같이 바꿔봤습니다.


window.open('URL','title','height=' + screen.height + ',width=' + screen.width + 'fullscreen=yes');


화면 크기에 맞춰서 전체화면으로 새 창이 열립니다.






관련글 더보기