Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> JavaScript

เปิด Print Dialog ของ Browser ด้วย JavaScript

ใน JavaScript เรียก printer dialog ด้วย function print()

ต่างจากภาษาอื่น print() ใน JS ไม่ได้พิมพ์ข้อความใน console (ใช้ console.log() แทน)

ดูตัวอย่างปฏิบัติ ที่นี่