Document
Head Body
Title Span
Asslam-o-Alikum!
Div
h2 img
Attribute When Called
onclick A mouse button has been clicked and released over the element
ondblclick A mouse button has been double clicked over the element
onreset This form element is ready to be reset.(only applies on form
elements).
onsubmit This form element is ready to be reset.(only applies on form
Document
Head Body
Title Span
Property Description
nodeType Number representing the type of node
nodeName String providing a name for this node
parentNode Reference to object that is this node’s parent.
Value Symbolic Constants Host Object Type
1 Node.ELEMENT_NODE Element
2 Node.ATTRIBUTE_NODE Attr
3 Node.TEXT_NODE Text
8 Node.COMMENT_NODE Comment
9 Node.DOCUMENT_NODE Document
10 Node.DOCUMENT_TYPE_NODE Document Type
Property Value
doctype An Object representing the document type declaration, if present, or null if
not.
title String representing the content of the title element (can be modified).
body Object representing the body element of the document.
URL String representing absolute URI for the document (read-only).

Web development

  • 3.
  • 5.
    Attribute When Called onclickA mouse button has been clicked and released over the element ondblclick A mouse button has been double clicked over the element onreset This form element is ready to be reset.(only applies on form elements). onsubmit This form element is ready to be reset.(only applies on form
  • 6.
  • 7.
    Property Description nodeType Numberrepresenting the type of node nodeName String providing a name for this node parentNode Reference to object that is this node’s parent.
  • 8.
    Value Symbolic ConstantsHost Object Type 1 Node.ELEMENT_NODE Element 2 Node.ATTRIBUTE_NODE Attr 3 Node.TEXT_NODE Text 8 Node.COMMENT_NODE Comment 9 Node.DOCUMENT_NODE Document 10 Node.DOCUMENT_TYPE_NODE Document Type
  • 9.
    Property Value doctype AnObject representing the document type declaration, if present, or null if not. title String representing the content of the title element (can be modified). body Object representing the body element of the document. URL String representing absolute URI for the document (read-only).