admin管理员组文章数量:1279015
I am making a web app similar to instagram and i want to detect and call a function whenever a user takes the screenshot, is their any way to implement this with javascript?
I am making a web app similar to instagram and i want to detect and call a function whenever a user takes the screenshot, is their any way to implement this with javascript?
Share Improve this question asked Jul 11, 2018 at 13:57 Suraj KumarSuraj Kumar 3211 gold badge6 silver badges14 bronze badges 3- 6 There are many ways a user might collect a screenshot without the browser even knowing about it. – Pointy Commented Jul 11, 2018 at 13:58
- 2 Yes, due to security issues I don't think any browser want to implement such functionality. It's not in the w3 standard for sure. – Mark Baijens Commented Jul 11, 2018 at 14:01
- Hulu does it see stackoverflow./questions/67916474/… – Brandon Stewart Commented Jun 10, 2021 at 7:35
1 Answer
Reset to default 8Currently, there is no way to handle a screenshot event through javascript. The screenshot functionality of phones simply has no connection to the browser.
本文标签: htmlHow to detect quoton Screenshotquot with JavascriptStack Overflow
版权声明:本文标题:html - How to detect "on Screenshot" with Javascript - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741299056a2370985.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论