How to show fullscreen popup window in javascript?

前端 未结 5 1768
被撕碎了的回忆
被撕碎了的回忆 2020-12-03 06:21

Is there a way to make a popup window maximised as soon as it is opened? If not that, at least make it screen-sized? This:

window.open(src, \'newWin\', \'ful         


        
5条回答
  •  执念已碎
    2020-12-03 07:25

    More than bad design - this "feature" is a recipe for UI disaster. There were a number of malicious web sites which exploited the full screen view features in JavaScript to hijack browser windows and display a screen indistinguishable from the user's desktop. While there may still be a way to do this, please for the love of all things decent, do not implement this.

提交回复
热议问题