ใช้เมธอด print() เพื่อเปิด Print Dialog Box ผู้ใช้เลือก Printer และตัวเลือกการพิมพ์ได้

ตัวอย่าง
<!DOCTYPE html> <html>
<body>
<button onclick="display()">Click to Print</button>
<script>
function display() {
window.print();
}
</script>
</body>
</html>