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

ตั้งค่า WebBrowser Control ให้รันใน IE9 Standards Mode

ใช้ Meta Tag X-UA-Compatible

บังคับให้ WebBrowser Control (Embedded IE) ใช้ Standards Mode

สำหรับ IE9

<meta http-equiv="X-UA-Compatible" content="IE=9" />

สำหรับ Edge Mode (Latest Engine)

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

วางใน <head> บรรทัดแรก (ก่อน tag อื่นๆ ยกเว้น <title> และ <meta charset>)

หมายเหตุ: WebBrowser Control ใช้ IE Engine ที่ติดตั้งบนเครื่อง Meta tag นี้บังคับ Document Mode