Can I prevent the user's screen from being deleted on a page?

5

I believe that all operating systems have the option to turn the screen off after a certain amount of user inactivity, mainly as a way to save battery power, but it is not always wanted to do so.

For example, when watching a video, the user may be inactive during playback, but it is desired that the screen does not go out every time - which does not happen by default.

But what if my page behaves similarly? I can have a post on a blog that I hope the user takes longer to read, getting inactive during this time.

  • Is it possible to tell the browser that the screen should not delete after a period of user inactivity on a particular page?
  • Will this setting from JavaScript overwrite the operating system user settings?
  • In terms of usability, would it be interesting to inform the user that the screen would not go out on this page?
asked by anonymous 30.10.2017 / 14:03

1 answer

1

There is no pattern yet. Multiple browsers and OSes implement in a certain way. That said, there are standardization initiatives.

Font .

  

Is it possible to tell the browser that the screen should not delete after a period of user inactivity on a particular page?

This is the role of these APIs, however each has a different implementation (and specification).

  

Will this setting from JavaScript overwrite the operating system user settings?

Yes.

  

In terms of usability, would it be interesting to inform the user that the screen would not go out on this page?

It depends on the case, but in general I would consider it a good practice.

    
30.10.2017 / 15:26