In the below code,
in a.html there is this code as,
<div id="tableview"></div>//Data loaded dynamically
<input type="button" id="printbtn" onclick="print()"/>
<script>
function print()
{
var data=$('#tableview').html();
dataobj.print();
}
In b.html
I need to print a.html without opening it ,But without opening it how will the data in the div get generated and how to print only this data from b.html
Thanks..