jquery - Capture multiple Iframes screenshot in html2canvas -


i using html2canvas capture screenshot of content inside div. working fine not sure how capture screenshot of multiple iframes inside div having id.

this did far.

<div id="target">      <iframe src="home.html" height="3000" width="1000" id='iframe1'></iframe>      <iframe src="about-us.html" height="3000" width="1000" id='iframe2'>/iframe> </div> 

here js code:

var body = $('#iframe1').contents().find('body');         html2canvas(body,{                     onrendered: function (canvas) {                     $('#img_val').val(canvas.todataurl("image/png"));                     document.getelementbyid("myform").submit();             },         }); 

above code working fine if have 1 iframe inside div having id='target'.so how capture screenshot if have multiple iframes inside div in above html.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

android - IllegalStateException: Cannot call this method while RecyclerView is computing a layout or scrolling -