TAILIEUCHUNG - javascript programmer's reference phần 3

Phương pháp này bị phản đối trong lợi của phương pháp () trong Netscape 4. Không còn được hỗ trợ trong 6,0 Netscape. Xem thêm: ()X-phối hợp của các lớp liên quan đến các tài liệu cấp cao nhất. Tình trạng: JavaScript - 1,2 Netscape - 4,0 Số phản đối nguyên thủy N | D - Method Example code A code fragment that creates an attribute and sets it on an element object that is passed in function attachMyAttrib anElement aName aValue var myNewAttr createAttribute aName var myOldAttr myAttr See also Attr object Attribute object Method Creates a new CDATASection object whose value is the string passed as an argument. Availability DOM level - 1 JavaScript - Netscape - Property method value type CDATASection object JavaScript syntax N myDocument .createCDATASection someData Argument list someData The data content for the new object See also CDATASection object Method Creates a new comment node object containing the data passed in the string argument. Availability DOM level - 1 JavaScript - Netscape - Property method value type COMMENT object JavaScript syntax N someData Argument list someData The content of the comment block See also COMMENT object 521 JavaScript Programmer s Reference Method Creates a new and empty document fragment. Availability DOM level - 1 JavaScript - Netscape - Property method value type DocumentFragment object JavaScript syntax N myDocument .createDocumentFragment someData Argument list someData The content of the document fragment DocumentFragment object See also Method A method to create a new element within a document. Availability DOM level - 1 JavaScript - JScript - Internet Explorer - Netscape - Property method value type Element object JavaScript syntax - aTagName Argument list aTagName An HTML tag name The result of calling this method is a new Element object as if it had been freshly instantiated by an HTML tag. This is a means of creating new objects which you can then assign to various properties. It is effectively a constructor which is driven by the HTML

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.