Screencapture from the browser using Javascript?

前端 未结 2 2089
生来不讨喜
生来不讨喜 2021-01-20 05:56

I guess this is an odd one, and the answer is most likely it is not possible since it would represent a security breach; but I am looking for a way - if any - to get a scree

2条回答
  •  别那么骄傲
    2021-01-20 05:57

    It cannot be done (yet) in pure JavaScript.

    As a side-note, if your goal is to make rendering tests, you could try instantiating the target browsers within a hosted environment (i.e. host Internet Explorer in a WinForms application and get a screenshot of the rendered content) - this will show the Silverlight plug-in and allow taking screenshots.

提交回复
热议问题