How to take screenshot of a div with JavaScript?

前端 未结 10 1698
误落风尘
误落风尘 2020-11-22 08:03

I am building something called the \"HTML Quiz\". It\'s completely ran on JavaScript and it\'s pretty cool.

At the end, a results box pops up that says \"Your Result

10条回答
  •  没有蜡笔的小新
    2020-11-22 08:28

    As far as I know its not possible with javascript.

    What you can do for every result create a screenshot, save it somewhere and point the user when clicked on save result. (I guess no of result is only 10 so not a big deal to create 10 jpeg image of results)

提交回复
热议问题