I\'m trying to use HTML2Canvas to render the contents of a div. Here is the code:
var htmlSource = $(\'#potenzial-page\')[0]; $(\'#btn\').on(\"click\", fun
window.scrollTo(0,0);
Add this works for me.