Platform Support
| Mozilla | Chrome | Safari | Opera | IE | Netscape | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 2.0+ | 1.0+ |
|---|
Constructors
| Constructor | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | ||
|---|---|---|---|---|---|---|---|---|---|
|
HTMLPreElement Constructor() : HTMLPreElement
Creates an instance of the HTMLPreElement.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 2.0+ | 1.0+ | ||
HTMLPreElement() : HTMLPreElementCreates an instance of the HTMLPreElement. Returns
|
|||||||||
Properties
| Property | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape |
|---|---|---|---|---|---|---|---|
|
width
: Number
Fixed width for content. This property is depricated in HTML 5.
|
Show Details | 1.0+ | 5.0+ | 1.0+ | 4.0+ | 2.0+ | 1.0+ |
|
|||||||
Inherited Functions
| Method | Action | Mozilla | Chrome | Safari | Opera | IE | Netscape | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
getElementsByClassName(String classNames) : NodeList
Returns a NodeList containing all the
Element nodes with the specified classNames. |
Show Details | 1.9+ | 5.0+ | 3.1+ | 9.51+ | no | no | |||||
|
Parameters
Returns
|
||||||||||||
References
Availability
JavaScript 1.2|WhatWG