html - How to open a new window in FULLSCREEN with JavaScript? - Stack Overflow

I am using this code but it doesn't work because the new window is half of the my screen ( 1280x80

I am using this code but it doesn't work because the new window is half of the my screen ( 1280x800px ):

<a href="javascript:void(0);" onClick="window.open('', '', 
'fullscreen=yes');">Open Full Screen Window</a> 

Why ?

I am using this code but it doesn't work because the new window is half of the my screen ( 1280x800px ):

<a href="javascript:void(0);" onClick="window.open('http://www.stackoverflow.', '', 
'fullscreen=yes');">Open Full Screen Window</a> 

Why ?

Share Improve this question edited Sep 5, 2022 at 12:50 Brian Tompsett - 汤莱恩 5,89372 gold badges61 silver badges133 bronze badges asked Oct 7, 2010 at 15:20 xRobotxRobot 26.6k72 gold badges192 silver badges316 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

In browsers which supported it in the first place, this feature has been phased out due to its user hostility and ability to be used for phishing security attacks.

fullscreen

Do not use. Not implemented in Mozilla. There are no plans to implement this feature in Mozilla.

This feature no longer works in MSIE 6 SP2 the way it worked in MSIE 5.x. The Windows taskbar, as well as the titlebar and the status bar of the window are not visible, nor accessible when fullscreen is enabled in MSIE 5.x.

fullscreen always upsets users with large monitor screen or with dual monitor screen. Forcing fullscreen onto other users is also extremely unpopular and is considered an outright rude attempt to impose web author's viewing preferences onto users.

— https://developer.mozilla/en/DOM/window.open

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742408342a4438306.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信