I'm using a receipt printer to print expiry labels. It works using touch screen set of buttons which open a print window to send the document to the printer. In the print window I need to use Javascript to write the product name and expiry length.
How do I go about simply writing the contents of the query: Example..
http://www.url.com/printLabel.html?product=Teriyaki&expiry=48hr
Print Window
<script>
document.write ("Teriyaki");
document.write ("48hr");
</script>