AmitDiwan has Published 11367 Articles

HTML DOM clientLeft Property

AmitDiwan

AmitDiwan

Updated on 07-Aug-2019 13:25:09

28 Views

The HTML DOM clientLeft property returns the width of the left border of an element in pixels. It is a read-only property. This property will include the width of a vertical scrollbar but it will never include the left margin or left padding of an element.SyntaxFollowing is the syntax for ... Read More

HTML DOM click() method

AmitDiwan

AmitDiwan

Updated on 07-Aug-2019 13:14:24

251 Views

The HTML DOM click() method simulates a mouse-click on an element. It can be used to click on any element just like a user would do. This is used to fire the elements click event. The click event does event bubbling i.e. it will execute the click event of all ... Read More

HTML DOM className Property

AmitDiwan

AmitDiwan

Updated on 07-Aug-2019 13:07:13

68 Views

The HTML DOM className property is used to assign a css class to an HTML element. The className property is used for setting or returning an element’s class name attribute value. If no class is associated with an HTML element, then an empty string is returned. We can change a ... Read More

HTML DOM childNodes Property

AmitDiwan

AmitDiwan

Updated on 07-Aug-2019 12:35:47

133 Views

The HTML DOM childNodes property returns a collection of node’s child nodes in the form of a NodeList object. The nodes are sorted and are in the same order as they appear in the HTML document. These nodes can be accessed by index number which starts from 0. It is ... Read More

HTML DOM childElementCount Property

AmitDiwan

AmitDiwan

Updated on 07-Aug-2019 12:31:47

47 Views

The HTML DOM childElementCount property is a read-only property that returns the number of child elements of a given element. The return type of the childElementCount is of unsigned long. It will only return the child element of the node on which it is queried and not all the child ... Read More

HTML DOM characterSet Property

AmitDiwan

AmitDiwan

Updated on 07-Aug-2019 12:27:04

23 Views

The HTML DOM characterSet Property represents the character set that is associated with the charset attribute of the element. By default the character set for an HTML document is UTF-8.The characterSet property returns the character encoding for the HTML document in a string format. The user can override the ... Read More

HTML DOM Caption Object

AmitDiwan

AmitDiwan

Updated on 07-Aug-2019 12:23:10

89 Views

The HTML DOM Caption object is associated with the HTML element. The element is used for setting caption (title) of the table and should be the first child of the table. You can access caption element using the caption object.PropertiesNote: The below property are not supported in the ... Read More

HTML DOM cancelable Event Property

AmitDiwan

AmitDiwan

Updated on 07-Aug-2019 12:11:07

102 Views

The HTML DOM cancelable event property is associated with the HTML events as JavaScript can react to these events. The cancelable event property returns a Boolean true or false indicating whether the event can be cancelled or not.SyntaxFollowing is the syntax for cancelable event property −event.cancelableExampleLet us see an example ... Read More

HTML DOM Button type Property

AmitDiwan

AmitDiwan

Updated on 07-Aug-2019 12:02:28

153 Views

The HTML DOM Button type property is associated with the HTML element. The button element by default has type=”submit” i.e clicking on any button on the form will submit the form. The button type property sets or returns the type of button.SyntaxFollowing is the syntax for −Setting the button ... Read More

HTML DOM Button object

AmitDiwan

AmitDiwan

Updated on 07-Aug-2019 11:57:48

608 Views

The HTML DOM Button object is associated with the element.PropertiesFollowing are the properties for the HTML DOM button object −PropertyDescriptionautofocusTo set or return whether a button is automatically focused or not when the page loads.disabledTo set or return whether a given button is disabled or not.formTo return the reference ... Read More

Advertisements