2

I am using HTML 5 full screen API, When full screen mode is activated, there is this default option on the top of screen (see the image attached) which allows user to close full screen mode.

default closing option that comes on the top of scrren

Is there any way to hide/disable this? it looks really ugly and it is useless since I am using my own closing option. I am ok with javascript solution if there is any.

Thanks in advance!

Aditya Ponkshe
  • 3,840
  • 4
  • 39
  • 58
  • @BipinKumarPal how is that a solution? – Aditya Ponkshe Dec 10 '13 at 06:32
  • you use jquery library than use my code – Bipin Kumar Pal Dec 10 '13 at 06:38
  • It's unlikely that this can be removed, as it is the browser's way of telling the user what is happening. Removing it would open the doors to all kinds of security-related shenanigans. We had that 10 years ago with IE 5's "chromeless windows" and it was a disaster and went away soon after – Pekka Dec 10 '13 at 06:52
  • @Pekka웃 in that case is there any way to call a function on that (exit full screen) link? – Aditya Ponkshe Dec 10 '13 at 06:54
  • No, but there seems to be a "cancel" API call: http://www.sitepoint.com/html5-full-screen-api/ – Pekka Dec 10 '13 at 06:55
  • @Pekka웃 then how can i change style of element if user exits full screen using esc or (exit full screen) link? – Aditya Ponkshe Dec 10 '13 at 06:56
  • Not sure. There is `document.fullScreen` in the linked article - you may be able to frequently check for that and change stuff accordingly – Pekka Dec 10 '13 at 06:57
  • @Pekka웃 damn, that is not a good way – Aditya Ponkshe Dec 10 '13 at 06:58
  • @Pekka웃 if you are 100% sure, why don't you put your 1st comment in answer so i can accept it and close the question – Aditya Ponkshe Dec 10 '13 at 06:59
  • @Pekka웃 apparently there is something called webkitfullscreenchange which can identify even if user ends full screen mode using default option provided by browser – Aditya Ponkshe Dec 10 '13 at 07:08
  • Yeah, indeed: [How can we figure out when a HTML5 video player enters the full screen mode on iOS / iPads?](http://stackoverflow.com/q/9094913) (will be limited to Chrome/Safari though) – Pekka Dec 10 '13 at 07:09
  • @Pekka웃 thanks for assistance man, appreciate it – Aditya Ponkshe Dec 10 '13 at 07:11

1 Answers1

2

It's unlikely that the browser notification can be removed, as it is the browser's way of telling the user what is happening. Removing it would open the doors to all kinds of security-related shenanigans.

We had that 10 years ago with IE 5's "chromeless windows" and it was a disaster and went away soon after [available at archive.org].

Hawken MacKay Rives
  • 1,171
  • 1
  • 16
  • 26
Pekka
  • 442,112
  • 142
  • 972
  • 1,088