I am working in codeigniter, wherein I create one page and in that page create one table with print button. onclick that button, id and name should be sent on print.
how can I send that id and name on print without print preview?
I am working in codeigniter, wherein I create one page and in that page create one table with print button. onclick that button, id and name should be sent on print.
how can I send that id and name on print without print preview?
Simply put: you can't.
The farthest you can come with JavaScript and printing is window.print() which sends print command to the browser and opens the preview of the file you want to print.
If you could get past the preview, people would be able to send numerous print commands to your printer and print, for example, the complete Wikipedia website, which would consume a lot of paper.