javascript - after appending inline html to html the window.open() doesn't shows append data -


here created

after appending inline html table data html table, open new tab , show print view

but problem appending data not shows.

there show html page table data

test.html

<div>     <p>your content here</p>     <table  id="toprint">         <tr>             <th>name</th>             <th>phone</th>         </tr>     </table> </div>  

print button in html page , onclick using backbone.js

print : function() {     var htmltable2 = '<tr class="header">'         + '<td>prasanth</td>' + '<td>12345678</td>'         + '</tr>';     var html1 = $("#toprint tbody").append(htmltable2);     window.open("test.html").print(); }, 

how change html page table + append inline html data open new tab , show print option.

instead of window.open("test.html").print(); window.print();

by opening page again, lose changes.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -