javascript - window.open Fullscreen not working in windows 7 IE - Stack Overflow

I have used below the Javascript to open the browser full screen(no close button)popupwindow = window.o

I have used below the Javascript to open the browser full screen(no close button)

popupwindow = window.open("name.aspx?Email="+Email+"&AssessmentID="+AssessmentID+"&Attempts="+Attempts+"","List","menubar=no,fullscreen=yes,directories=no,scrollbars=yes,resizable=no,close=no,top=0,left=0,right=0,titlebar=no,toolbar=no,statusbar=no");    

But It did perfectly work in windows xp IE's....But not work in Windows 7 default version IE browser..Please do needful for me.....

I used full screen for Online exam..I am just dont let user to switch to other window...

Thanks

I have used below the Javascript to open the browser full screen(no close button)

popupwindow = window.open("name.aspx?Email="+Email+"&AssessmentID="+AssessmentID+"&Attempts="+Attempts+"","List","menubar=no,fullscreen=yes,directories=no,scrollbars=yes,resizable=no,close=no,top=0,left=0,right=0,titlebar=no,toolbar=no,statusbar=no");    

But It did perfectly work in windows xp IE's....But not work in Windows 7 default version IE browser..Please do needful for me.....

I used full screen for Online exam..I am just dont let user to switch to other window...

Thanks

Share edited Jul 3, 2012 at 21:13 Jeffery To 11.9k1 gold badge29 silver badges42 bronze badges asked May 16, 2012 at 13:52 DomnicDomnic 5,3078 gold badges28 silver badges27 bronze badges 2
  • It could well be that the feature has been removed as a security risk. There's lots of nasty stuff people can do with a fullscreen window. – Ashley Strout Commented May 16, 2012 at 13:54
  • IE 9 has the option to view in full screen by press(F11)..Could you please clarify on that – Domnic Commented Jun 29, 2012 at 9:55
Add a ment  | 

2 Answers 2

Reset to default 6 +25

The fullscreen feature which can be passed to the window.open function is proprietary and IE-only. Already on older versions of windows it would behave uncontrollably and microsoft advised against the use several years ago (unofficially deprecating the feature back then and changing it to showing maximized windows1). In other words, you should NOT use this flag at all.

So far the bad news, the good news; the only situation where full screen functionality makes sense is for videos and for games. If you're working with videos then I strongly advise you to use flash to provide fullscreen support (despite all the backslash against flash currently, for the time being it's the only fullscreen option) and if you're working on a html5 game IE support is pointless and you can use the fullscreen javascript API (supported in about all browsers except IE).

The main difference between the new fullscreen API and the old fullscreen IE flag is that the user is now shown very clearly how to exit fullscreen and a huge dialog/warning is shown showing the user that he has entered fullscreen to prevent abuse.


1 If you're interested in the details, IE6 SP2 changed the behavior of the fullscreen=yes flag from a kiosk mode to a maximized mode as outlined here.

Given your environment, easiest and most reliable way would be to write a simple WinForms application, which uses WebBrowser ActiveX, opens your website and goes fullscreen.

Using C# (since Windows 7 has .NET 3.5 preinstalled) this would take literally 5-10 lines of code.

In addition, from a desktop app you can disable keys such as Windows key which may disrupt the exam experience, blank out other monitors if the user has more than one, etc.

If you have a public website, best way would be to deploy this as a ClickOnce app - no manual installation or other hassle for the user, just click "Launch", and be ready to go. Works for non-administrator users too.

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

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

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

关注微信