To get this working, simply setup your receipt printer as the default printer and rename it as "zebra":
![enter image description here][1]
Then simply download the [jZebra](https://code.google.com/archive/p/jzebra/downloads) - it's now evolved into [qz-print](https://github.com/qzind/qz-print) library, and put the jar file in the project directory and hey presto:
<input type=button onClick="print()" value="Print">
<applet name="jzebra" code="jzebra.PrintApplet.class" archive="./jzebra.jar" width="100" height="100">
<param name="printer" value="zebra">
</applet>
<script>
function print() {
document.jzebra.append("PRINTED USING JZEBRA\n");
document.jzebra.print();
}
</script>
![enter image description here][2]
[1]: http://i.stack.imgur.com/FvZ4L.png
[2]: http://i.stack.imgur.com/KPamv.jpg
To get this working, simply setup your receipt printer as the default printer and rename it as "zebra":
![enter image description here][1]
Then simply download the [jZebra](https://code.google.com/p/jzebra/) library, put the jar file in the project directory and hey presto:
<input type=button onClick="print()" value="Print">
<applet name="jzebra" code="jzebra.PrintApplet.class" archive="./jzebra.jar" width="100" height="100">
<param name="printer" value="zebra">
</applet>
<script>
function print() {
document.jzebra.append("PRINTED USING JZEBRA\n");
document.jzebra.print();
}
</script>
![enter image description here][2]
[1]: http://i.stack.imgur.com/FvZ4L.png
[2]: http://i.stack.imgur.com/KPamv.jpg