最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to prevent screenshot of webpage in mobile view? - Stack Overflow

programmeradmin3浏览0评论

I just want to know is there any option to stop taking the screenshot from a mobile view of any web page which is designed using HTML CSS of with a framework like bootstrap?

I just want to know is there any option to stop taking the screenshot from a mobile view of any web page which is designed using HTML CSS of with a framework like bootstrap?

Share Improve this question asked Mar 14, 2019 at 5:53 Harshvardhan Singh BaghelHarshvardhan Singh Baghel 1,14312 silver badges24 bronze badges 1
  • A screenshot es outside the browser, so I'm not sure how you'd expect to stop it from the web page – VLAZ Commented Mar 14, 2019 at 5:55
Add a ment  | 

2 Answers 2

Reset to default 5

I’m pretty sure there is no way of doing this. Screenshots are not a function delivered by website, and even not by browser. It’s your mobile function.

It’s the same like you can’t prevent desktop browser to do print screen of your site.

Another thing is that it’s a default behavior and as such it shouldn’t even be modified - it would confuse users.

This would be technically possible see android API: How to prevent Screen Capture in Android

But currently there is no API yet for accessing this through browsers.

发布评论

评论列表(0)

  1. 暂无评论