I have an html div
<div id="myDiv">
<table border="1" bgcolor="#FFFFFF" width="600">
<tr style="text-align:center">
<td>Subject Code</td>
<td>Subject Title</td>
<td>Credit Hour</td>
</tr>
</div>
Now, I want to have a button by which i can convert this <div id="myDiv"> to image or .doc....
can any one help me