admin
Filed under - Design, Development, JavaScript, jQuery, PHP
No Comments so far. Add yours now

You can create print view for selected part of page.

Selec All Code:
1
2
3
4
5
6
7
8
9
10
<script type="text/javascript">// <![CDATA[
function printPage(){
        var tableData = '
<table border="1">'+document.getElementsByTagName('table')[0].innerHTML+'</table>
';
        myWindow=window.open('','','width=800,height=600');
		setTimeout("myWindow.print()",200);
        myWindow.document.write(tableData);
    };
// ]]></script>
This is test table
Selec All Code:
1
<a>Click Here</a> to print this table content

Leave your comment

You must be logged in to post a comment.

Share IT © 2018. All rights reserved.