مثل Code في DOM HTML
عميل Code
يعبر عميل Code عن عنصر HTML <code>.
وصول عميل Code
يمكنك استخدام getElementById() للوصول إلى عنصر <code>:
var x = document.getElementById("myCode");
إنشاء عميل Code
يمكنك استخدام طريقة document.createElement() لإنشاء عنصر <code>:
var x = document.createElement("CODE");