News for hackers. Stuff that matters.
Re:Show HN: Prevent your computer sleeping with just a webpage by StrangeSound on Friday April 22, 2022 @04:57PM (#31128009)
You can also do this in the browser, using the beforeunload event

https://developer.mozilla.org/en-US/docs/Web/API/Window/befo...

There are no comments on this comment yet.