How to save/export a DOM element to an image?

Posted by Don Don on Stack Overflow See other posts from Stack Overflow or by Don Don
Published on 2010-05-02T16:34:21Z Indexed on 2010/05/02 16:37 UTC
Read the original article Hit count: 209

Filed under:

Hi,

I have a web page which has a form element (with its ID known) and inside the form there are multiple DIVs, and the position of each div may be changed.

What I'd like to do is: a) Save the current state of this form // var currentForm=document.forms['myFrm'].innerHTML; would probably suffice...

b) Save or export the entire form with the most current position of each DIV to an image file. // how to save/export the javascript var of currentForm to an image file is the key question.

Any help/pointer would be appreciated.

© Stack Overflow or respective owner

Related posts about image