I am trying to showing one image in bootstrap modal, also that pop-up window have one print button, so i need to take the print of that image, which showing in pop-up window.
<script type="text/javascript">
function code(){
$("#qbody").html("<p align='center'><img
src='http://chart.apis.google.com/chart?
cht=qr&chs=300x300&chl=code&chld=H|0'/></p>");
}
</script>
<div class="modal fade">
<div class="modal-body" id="qbody">
<a href='#' class='btn btn-primary pull-left'
onClick='window.print();'>Save</a>"
</div>
</div>
But here i click the save button that whole page will take as print, not taking that pop-up window image. How is that happening?