Вы находитесь на странице: 1из 12

The String Object

The String object let's you work with text.

Syntax for creating a String object: var myStr=new String(string);

String Object Properties

Constructor A reference to the function that created the object


Length Returns the number of characters in a string
Prototype Allows you to add properties and methods to the object

String Object Methods

anchor() Creates an HTML anchor


big() Displays a string in a big font
blink() Displays a blinking string
bold() Displays a string in bold
charAt() Returns the character at a specified position
charCodeAt() Returns the Unicode of the character at a specified position
concat() Joins two or more strings
fixed() Displays a string as teletype text
fontcolor() Displays a string in a specified color
fontsize() Displays a string in a specified size
fromCharCode() Takes the specified Unicode values and returns a string
indexOf() Returns the position of the first occurrence of a specified string value in a string
italics() Displays a string in italic
lastIndexOf() Returns the position of the last occurrence of a string value, searching backwards
link() Displays a string as a hyperlink
match() Searches for a specified value in a string
replace() Replaces some characters with some other characters in a string
search() Searches a string for a specified value
slice() Extracts a part of a string and returns the extracted part in a new string
small() Displays a string in a small font
split() Splits a string into an array of strings
strike() Displays a string with a strikethrough
sub() Displays a string as subscript
substr() Extracts a specified number of characters in a string, from a start index
substring() Extracts the characters in a string between two specified indices
sup() Displays a string as superscript
toLowerCase() Displays a string in lowercase letters
toUpperCase() Displays a string in uppercase letters
toSource() Represents the source code of an object
valueOf() Returns the primitive value of a String object

The Date Object


The Date object is used to work with dates and times.

Syntax for creating a Date object: var myDate=new Date()

Date Object Properties

Constructor Returns a reference to the Date function that created the object
Prototype Allows you to add properties and methods to the object

Date Object Methods

Date() Returns today's date and time


getDate() Returns the day of the month from a Date object (from 1-31)
getDay() Returns the day of the week from a Date object (from 0-6)
getFullYear() Returns the year, as a four-digit number, from a Date object
getHours() Returns the hour of a Date object (from 0-23)
getMilliseconds() Returns the milliseconds of a Date object (from 0-999)
getMinutes() Returns the minutes of a Date object (from 0-59)
getMonth() Returns the month from a Date object (from 0-11)
getSeconds() Returns the seconds of a Date object (from 0-59)
getTime() Returns the number of milliseconds since midnight Jan 1, 1970
getTimezoneOffset() Returns the difference in minutes between local time and Greenwich Mean Time (GMT)
getUTCDate() Returns the day of the month from a Date object according to universal time (from 1-31)
getUTCDay() Returns the day of the week from a Date object according to universal time (from 0-6)
getUTCMonth() Returns the month from a Date object according to universal time (from 0-11)
getUTCFullYear() Returns the four-digit year from a Date object according to universal time
getUTCHours() Returns the hour of a Date object according to universal time (from 0-23)
getUTCMinutes() Returns the minutes of a Date object according to universal time (from 0-59)
getUTCSeconds() Returns the seconds of a Date object according to universal time (from 0-59)
getUTCMilliseconds()Returns the milliseconds of a Date object according to universal time (from 0-999)
parse() Takes a date string and returns the number of milliseconds since midnight of January 1, 1970
setDate() Sets the day of the month in a Date object (from 1-31)
setFullYear() Sets the year in a Date object (four digits)
setHours() Sets the hour in a Date object (from 0-23)
setMilliseconds() Sets the milliseconds in a Date object (from 0-999)
setMinutes() Set the minutes in a Date object (from 0-59)
setMonth() Sets the month in a Date object (from 0-11)
setSeconds() Sets the seconds in a Date object (from 0-59)
setTime() Calculates time adding or subtracting a number of milliseconds from midnight January 1, 1970
setUTCDate() Sets the day of the month in a Date object according to universal time (from 1-31)
setUTCMonth() Sets the month in a Date object according to universal time (from 0-11)
setUTCFullYear() Sets the year in a Date object according to universal time (four digits)
setUTCHours() Sets the hour in a Date object according to universal time (from 0-23)
setUTCMinutes() Set the minutes in a Date object according to universal time (from 0-59)
setUTCSeconds() Set the seconds in a Date object according to universal time (from 0-59)
setUTCMilliseconds()Sets the milliseconds in a Date object according to universal time (from 0-999)
toDateString() Returns the date portion of a Date object in readable form
toGMTString() Converts a Date object, according to Greenwich time, to a string. Use toUTCString() instead !!
toLocaleDateString()Converts a Date object, according to local time, to a string and returns the date portion
toLocaleTimeString()Converts a Date object, according to local time, to a string and returns the time portion
toLocaleString() Converts a Date object, according to local time, to a string
toSource() Represents the source code of an object
toString() Converts a Date object to a string
toTimeString() Returns the time portion of a Date object in readable form
toUTCString() Converts a Date object, according to universal time, to a string
UTC() Takes a date and returns the number of milliseconds since midnight of January 1, 1970
valueOf() Returns the primitive value of a Date object

The Array Object


The Array object is used to store multiple values in a single variable.

Syntax for creating an Array object: var myCars=new Array("Saab","Volvo","BMW")

Array Object Properties

Constructor Returns a reference to the array function that created the object
index
input
Length Sets or returns the number of elements in an array
Prototype Allows you to add properties and methods to the object

Array Object Methods

Method
concat() Joins two or more arrays and returns the result
join() Puts all the elements of an array into a string. The elements are separated by a delimiter
pop() Removes and returns the last element of an array
push() Adds one or more elements to the end of an array and returns the new length
reverse() Reverses the order of the elements in an array
shift() Removes and returns the first element of an array
slice() Returns selected elements from an existing array
sort() Sorts the elements of an array
splice() Removes and adds new elements to an array
toSource() Represents the source code of an object
toString() Converts an array to a string and returns the result
unshift() Adds one or more elements to the beginning of an array and returns the new length
valueOf() Returns the primitive value of an Array object

The Boolean Object


The Boolean object represents two values: "true" or "false".

Syntax for creating a Boolean object: var myBool=new Boolean(value)

Boolean Object Properties

Constructor Returns a reference to the Boolean function that created the object
Prototype Allows you to add properties and methods to the object

Boolean Object Methods

toSource() Returns the source code of the object


toString() Converts a Boolean value to a string and returns the result
valueOf() Returns the primitive value of a Boolean object

The Math Object


The Math object allows you to perform mathematical tasks.

Syntax for using properties/methods of Math: var pi_value=Math.PI; var


sqrt_value=Math.sqrt(16);

Math Object Properties

E Returns Euler's constant (approx. 2.718)


Ln2 Returns the natural logarithm of 2 (approx. 0.693)
Ln10 Returns the natural logarithm of 10 (approx. 2.302)
LOG2E Returns the base-2 logarithm of E (approx. 1.442)
LOG10E Returns the base-10 logarithm of E (approx. 0.434)
PI Returns PI (approx. 3.14159)
SQRT1_2 Returns the square root of 1/2 (approx. 0.707)
SQRT2 Returns the square root of 2 (approx. 1.414)

Math Object Methods

abs(x) Returns the absolute value of a number


acos(x) Returns the arccosine of a number
asin(x) Returns the arcsine of a number
atan(x) Returns the arctangent of x as a numeric value between -PI/2 and PI/2 radians
atan2(y,x) Returns the angle theta of an (x,y) point as a numeric value between -PI and PI radians
ceil(x) Returns the value of a number rounded upwards to the nearest integer
cos(x) Returns the cosine of a number
exp(x) Returns the value of Ex
floor(x) Returns the value of a number rounded downwards to the nearest integer
log(x) Returns the natural logarithm (base E) of a number
max(x,y) Returns the number with the highest value of x and y
min(x,y) Returns the number with the lowest value of x and y
pow(x,y) Returns the value of x to the power of y
random() Returns a random number between 0 and 1
round(x) Rounds a number to the nearest integer
sin(x) Returns the sine of a number
sqrt(x) Returns the square root of a number
tan(x) Returns the tangent of an angle
toSource() Represents the source code of an object
valueOf() Returns the primitive value of a Math object

The Number Object


The Number object is an object wrapper for primitive numeric values.

Syntax for creating a Number object: var myNum=new Number(number);

Number Object Properties

Constructor Returns a reference to the Number function that created the object
MAX_VALUE Returns the largest possible value in JavaScript
MIN_VALUE Returns the smallest possible value in JavaScript
NaN Represents "Not-a-number" value
NEGATIVE_INFINITY Represents a value that is less than MIN_VALUE
POSITIVE_INFINITY Represents a value that is greater than MAX_VALUE
Prototype Allows you to add properties and methods to the object

Number Object Methods

toExponential() Converts the value of the object into an exponential notation


toFixed() Formats a number to the specified number of decimals
toLocaleString()
toPrecision() Converts a number into a number with a specified number of digits
toString() Converts the Number object into a string
valueOf() Returns the value of the Number object

Top-level Functions

decodeURI() Decodes an encoded URI


decodeURIComponent()Decodes an encoded URI component
encodeURI() Encodes a string as a URI
encodeURIComponent()Encodes a string as a URI component
escape() Encodes a string
eval() Evaluates a string and executes it as if it was script code
isFinite() Checks if a value is a finite number
isNaN() Checks if a value is not a number
Number() Converts an object's value to a number
parseFloat() Parses a string and returns a floating point number
parseInt() Parses a string and returns an integer
String() Converts an object's value to a string
unescape() Decodes a string encoded by escape()

Top-level Properties

Infinity A numeric value that represents positive or negative infinity


NaN Indicates that a value is "Not a Number"
Undefined Indicates that a variable has not been assigned a value

Window Object
The Window object is the top level object in the JavaScript hierarchy.

Window Object Collections

frames[] Returns all named frames in the window


Closed Returns whether or not a window has been closed
defaultStatus Sets or returns the default text in the statusbar of the window
Document See Document object
history
Length Sets or returns the number of frames in the window
Location
Name Sets or returns the name of the window
Opener Returns a reference to the window that created the window
outerHeight Sets or returns the outer height of a window
outerWidth Sets or returns the outer width of a window
pageXOffset Sets or returns the X position of the current page in relation to the upper left corner
pageYOffset Sets or returns the Y position of the current page in relation to the upper left corner
Parent Returns the parent window
Personalbar Sets whether or not the browser's personal bar (or directories bar) should be visible
Scrollbars Sets whether or not the scrollbars should be visible
Self Returns a reference to the current window
Status Sets the text in the statusbar of a window
Statusbar Sets whether or not the browser's statusbar should be visible
Toolbar Sets whether or not the browser's tool bar is visible or not
Top Returns the topmost ancestor window

Window Object Methods

alert() Displays an alert box with a message and an OK button


blur() Removes focus from the current window
clearInterval() Cancels a timeout set with setInterval()
clearTimeout() Cancels a timeout set with setTimeout()
close() Closes the current window
confirm() Displays a dialog box with a message and an OK and a Cancel button
createPopup() Creates a pop-up window
focus() Sets focus to the current window
moveBy() Moves a window relative to its current position
moveTo() Moves a window to the specified position
open() Opens a new browser window
print() Prints the contents of the current window
prompt() Displays a dialog box that prompts the user for input
resizeBy() Resizes a window by the specified pixels
resizeTo() Resizes a window to the specified width and height
scrollBy() Scrolls the content by the specified number of pixels
scrollTo() Scrolls the content to the specified coordinates
setInterval() Evaluates an expression at specified intervals
setTimeout() Evaluates an expression after a specified number of milliseconds

Navigator Object
The Navigator object is actually a JavaScript object, not an HTML DOM object.

Navigator Object Properties

appCodeName Returns the code name of the browser


appMinorVersion Returns the minor version of the browser
appName Returns the name of the browser
appVersion Returns the platform and version of the browser
browserLanguage Returns the current browser language
cookieEnabled Returns a Boolean value that specifies whether cookies are enabled in the browser
cpuClass Returns the CPU class of the browser's system
onLine Returns a Boolean value that specifies whether the system is in offline mode
Platform Returns the operating system platform
systemLanguage Returns the default language used by the OS
userAgent Returns the value of the user-agent header sent by the client to the serve
userLanguage Returns the OS' natural language setting

Navigator Object Methods

javaEnabled() Specifies whether or not the browser has Java enabled


taintEnabled() Specifies whether or not the browser has data tainting enabled
Screen Object
The Screen object is actually a JavaScript object, not an HTML DOM object..

Screen Object Properties

availHeight Returns the height of the display screen (excluding the Windows Taskbar)
availWidth Returns the width of the display screen (excluding the Windows Taskbar)
bufferDepth Sets or returns the bit depth of the color palette in the off-screen bitmap buffer
colorDepth Returns the bit depth of the color palette on the destination device or buffer
deviceXDPI Returns the number of horizontal dots per inch of the display screen
deviceYDPI Returns the number of vertical dots per inch of the display screen
fontSmoothingEnabledReturns whether the user has enabled font smoothing in the display control panel
Height The height of the display screen
logicalXDPI Returns the normal number of horizontal dots per inch of the display screen
logicalYDPI Returns the normal number of vertical dots per inch of the display screen
pixelDepth Returns the color resolution (in bits per pixel) of the display screen
updateInterval Sets or returns the update interval for the screen
Width Returns width of the display screen

History Object
The History object is actually a JavaScript object, not an HTML DOM object.

History Object Methods

back() Loads the previous URL in the history list


forward() Loads the next URL in the history list
go() Loads a specific page in the history list

Location Object
The Location object is actually a JavaScript object, not an HTML DOM object.

Location Object Properties

Hash Sets or returns the URL from the hash sign (#)
Host Sets or returns the hostname and port number of the current URL
Hostname Sets or returns the hostname of the current URL
Href Sets or returns the entire URL
Pathname Sets or returns the path of the current URL
Port Sets or returns the port number of the current URL
Protocol Sets or returns the protocol of the current URL
Search Sets or returns the URL from the question mark (?)

Location Object Methods

assign() Loads a new document


reload() Reloads the current document
replace() Replaces the current document with a new one

Document Object
The Document object represents the entire HTML document and can be used to access all elements in a page.

Document Object Collections

anchors[] Returns a reference to all Anchor objects in the document


forms[] Returns a reference to all Form objects in the document
images[] Returns a reference to all Image objects in the document
links[] Returns a reference to all Area and Link objects in the document

Document Object Properties

Body Gives direct access to the <body> element


Cookie Sets or returns all cookies associated with the current document
Domain Returns the domain name for the current document
lastModified Returns the date and time a document was last modified
Referrer Returns the URL of the document that loaded the current document
Title Returns the title of the current document
URL Returns the URL of the current document

Document Object Methods

close() Closes an output stream opened with the document.open() method


getElementById() Returns a reference to the first object with the specified id
getElementsByName() Returns a collection of objects with the specified name
getElementsByTagName() Returns a collection of objects with the specified tagname
open() Opens a stream to collect the output from any document.write() or document.writeln()
write() Writes HTML expressions or JavaScript code to a document
writeln() Identical to the write(), with the addition of writing a new line character after expression

Button Object
The Button object represents a push button.

Button Object Properties

accessKey Sets or returns the keyboard key to access a button


Disabled Sets or returns whether a button should be disabled
Form Returns a reference to the form that contains the button
Id Sets or returns the id of a button
Name Sets or returns the name of a button
tabIndex Sets or returns the tab order for a button
Type Returns the type of form element a button is
Value Sets or returns the text that is displayed on a button

Event Handlers

Onabort Loading of an image is interrupted


Onblur An element loses focus
Onchange The content of a field changes
Onclick Mouse clicks an object
Ondblclick Mouse double-clicks an object
Onerror An error occurs when loading a document or an image
Onfocus An element gets focus
Onkeydown A keyboard key is pressed
Onkeypress A keyboard key is pressed or held down
Onkeyup A keyboard key is released
Onload A page or an image is finished loading
Onmousedown A mouse button is pressed
Onmousemove The mouse is moved
Onmouseout The mouse is moved off an element
Onmouseover The mouse is moved over an element
Onmouseup A mouse button is released
Onreset The reset button is clicked
Onresize A window or frame is resized
Onselect Text is selected
Onsubmit The submit button is clicked
Onunload The user exits the page
Mouse / Keyboard Attributes
altKey Returns whether or not the "ALT" key was pressed when an event was triggered
Button Returns which mouse button was clicked when an event was triggered
clientX Returns the horizontal coordinate of the mouse pointer when an event was triggered
clientY Returns the vertical coordinate of the mouse pointer when an event was triggered
ctrlKey Returns whether or not the "CTRL" key was pressed when an event was triggered
metaKey Returns whether or not the "meta" key was pressed when an event was triggered
relatedTarget Returns the element related to the element that triggered the event
screenX Returns the horizontal coordinate of the mouse pointer when an event was triggered
screenY Returns the vertical coordinate of the mouse pointer when an event was triggered
shiftKey Returns whether or not the "SHIFT" key was pressed when an event was triggered

Other Event Attributes

Bubbles Returns a Boolean value that indicates whether or not an event is a bubbling event
Cancelable Returns a Boolean that indicates whether or not an event can be default action prevented
currentTarget Returns the element whose event listeners triggered the event
eventPhase Returns which phase of the event flow is currently being evaluated
Target Returns the element that triggered the event
timeStamp Returns the time stamp, in milliseconds, from the epoch (system start or event trigger)
Type Returns the name of the event

Form Object
The Form object represents an HTML form.

Form Object Properties

acceptCharset Sets or returns a list of possible character-sets for the form data
Action Sets or returns the action attribute of a form
Enctype Sets or returns the MIME type used to encode the content of a form
Id Sets or returns the id of a form
Length Returns the number of elements in a form
Method Sets or returns the HTTP method for sending data to the server
Name Sets or returns the name of a form
Target Sets or returns where to open the action-URL in a form

Form Object Methods

reset() Resets the values of all elements in a form


submit() Submits a form

Image Object
The Image object represents an embedded image.

Image Object Properties

Align Sets or returns how to align an image according to the surrounding text
Alt Sets or returns an alternate text to be displayed, if a browser cannot show an image
Border Sets or returns the border around an image
Complete Returns whether or not the browser has finished loading the image
Height Sets or returns the height of an image
Hspace Sets or returns the white space on the left and right side of the image
Id Sets or returns the id of the image
isMap Returns whether or not an image is a server-side image map
longDesc Sets or returns a URL to a document containing a description of the image
Lowsrc Sets or returns a URL to a low-resolution version of an image
Name Sets or returns the name of an image
Src Sets or returns the URL of an image
useMap Sets or returns the value of the usemap attribute of an client-side image map
Vspace Sets or returns the white space on the top and bottom of the image
Width Sets or returns the width of an image

Button Object
The Button object represents a button in an HTML form.

Button Object Properties

accessKey Sets or returns the keyboard key to access a button


Alt Sets or returns an alternate text to display if a browser does not support buttons
Disabled Sets or returns whether or not a button should be disabled
Form Returns a reference to the form that contains the button
Id Sets or returns the id of a button
Name Sets or returns the name of a button
Type Returns the type of form element a button is
Value Sets or returns the text that is displayed on the button

Button Object Methods

blur() Removes focus from a button


click() Simulates a mouse-click on a button
focus() Gives focus to a button

Radio Object
The Radio object represents a radio button in an HTML form.

Radio Object Properties

accessKey Sets or returns the keyboard key to access a radio button


Alt Sets or returns an alternate text to display if a browser does not support radio buttons
Checked Sets or returns the state of a radio button
defaultChecked Returns the default state of a radio button
Disabled Sets or returns whether or not a radio button should be disabled
Form Returns a reference to the form that contains the radio button
Id Sets or returns the id of a radio button
Name Sets or returns the name of a radio button
tabIndex Sets or returns the tab order for a radio button
Type Returns the type of form element a radio button is
Value Sets or returns the value of the value attribute of the radio button

Radio Object Methods

blur() Removes focus from a radio button


click() Simulates a mouse-click on a radio button
focus() Sets focus on a radio button

Text Object
The Text object represents a text-input field in an HTML form.

Text Object Properties

accessKey Sets or returns the keyboard key to access a text field


Alt Sets or returns an alternate text to display if a browser does not support text fields
defaultValue Sets or returns the default value of a text field
Disabled Sets or returns whether or not a text field should be disabled
Form Returns a reference to the form that contains the text field
Id Sets or returns the id of a text field
maxLength Sets or returns the maximum number of characters in a text field
Name Sets or returns the name of a text field
readOnly Sets or returns whether or not a text field should be read-only
Size Sets or returns the size of a text field
tabIndex Sets or returns the tab order for a text field
Type Returns the type of form element a text field is
Value Sets or returns the value of the value attribute of a text field

Text Object Methods

blur() Removes focus from a text field


focus() Sets focus on a text field
select() Selects the content of a text field

Link Object
The Link object element defines the relationship between two linked documents

Link Object Properties

Charset Sets or returns the character encoding of the target URL


Disabled Sets or returns whether or not the target URL should be disabled
Href Sets or returns the URL of a linked resource
Hreflang Sets or returns the base language of the target URL
Id Sets or returns the id of a <link> element
Media Sets or returns on what device the document will be displayed
Name Sets or returns the name of a <link> element
Rel Sets or returns the relationship between the current document and the target URL
Rev Sets or returns the relationship between the target URL and the current document
Type Sets or returns the MIME type of the target URL

Style object
The Style object represents an individual style statement.

Syntax for using the Style object properties: document.getElementById("id").style.property="value"

Background properties

Background Sets all background properties in one


backgroundAttachment Sets whether a background-image is fixed or scrolls with the page
backgroundColor Sets the background-color of an element
backgroundImage Sets the background-image of an element
backgroundPosition Sets the starting position of a background-image
backgroundPositionX Sets the x-coordinates of the backgroundPosition property
backgroundPositionY Sets the y-coordinates of the backgroundPosition property
backgroundRepeat Sets if/how a background-image will be repeated

Border and Margin properties

Border Sets all properties for the four borders in one


borderBottom Sets all properties for the bottom border in one
borderBottomColor Sets the color of the bottom border
borderBottomStyle Sets the style of the bottom border
borderBottomWidth Sets the width of the bottom border
borderColor Sets the color of all four borders (can have up to four colors)
borderLeft Sets all properties for the left border in one
borderLeftColor Sets the color of the left border
borderLeftStyle Sets the style of the left border
borderLeftWidth Sets the width of the left border
borderRight Sets all properties for the right border in one
borderRightColor Sets the color of the right border
borderRightStyle Sets the style of the right border
borderRightWidth Sets the width of the right border
borderStyle Sets the style of all four borders (can have up to four styles)
borderTop Sets all properties for the top border in one
borderTopColor Sets the color of the top border
borderTopStyle Sets the style of the top border
borderTopWidth Sets the width of the top border
borderWidth Sets the width of all four borders (can have up to four widths)
Margin Sets the margins of an element (can have up to four values)
marginBottom Sets the bottom margin of an element
marginLeft Sets the left margin of an element
marginRight Sets the right margin of an element
marginTop Sets the top margin of an element
Outline Sets all outline properties in one
outlineColor Sets the color of the outline around an element
outlineStyle Sets the style of the outline around an element
outlineWidth Sets the width of the outline around an element
Padding Sets the padding of an element (can have up to four values)
paddingBottom Sets the bottom padding of an element
paddingLeft Sets the left padding of an element
paddingRight Sets the right padding of an element
paddingTop Sets the top padding of an element

Layout properties

Clear Sets on which sides of an element other floating elements are not allowed
Clip Sets the shape of an element
Content Sets meta-information
counterIncrement Sets a list of counter names, followed by an integer. The integer indicates by how much the
counter is incremented for every occurrence of the element. The default is 1
counterReset Sets a list of counter names, followed by an integer. The integer gives the value that the
counter is set to on each occurrence of the element. The default is 0
cssFloat Sets where an image or a text will appear (float) in another element
Cursor Sets the type of cursor to be displayed
Direction Sets the text direction of an element
Display Sets how an element will be displayed
Height Sets the height of an element
markerOffset Sets the distance between the nearest border edges of a marker box and its principal box
Marks Sets whether cross marks or crop marks should be rendered just outside the page box edge
maxHeight Sets the maximum height of an element
maxWidth Sets the maximum width of an element
minHeight Sets the minimum height of an element
minWidth Sets the minimum width of an element
Overflow Specifies what to do with content that does not fit in an element box
verticalAlign Sets the vertical alignment of content in an element
Visibility Sets whether or not an element should be visible
Width Sets the width of an element

List properties

listStyle Sets all the properties for a list in one


listStyleImage Sets an image as the list-item market
listStylePosition Positions the list-item marker
listStyleType Sets the list-item marker type

Positioning properties
Bottom Sets how far the bottom edge of an element is above/below the bottom edge of the parent
Left Sets how far the left edge of an element is to the right/left of the left edge of the parent
Position Places an element in a static, relative, absolute or fixed position
Right Sets how far the right edge of an element is to the left/right of the right edge of the parent
Top Sets how far the top edge of an element is above/below the top edge of the parent element
Zindex Sets the stack order of an element
Printing properties

Orphans Sets the minimum number of lines for a paragraph that must be left at the bottom of a page
Page Sets a page type to use when displaying an element
pageBreakAfter Sets the page-breaking behavior after an element
pageBreakBefore Sets the page-breaking behavior before an element
pageBreakInside Sets the page-breaking behavior inside an element
Size Sets the orientation and size of a page
Widows Sets the minimum number of lines for a paragraph that must be left at the top of a page

Table properties

borderCollapse Sets whether the table border are collapsed into a single border or detached
borderSpacing Sets the distance that separates cell borders
captionSide Sets the position of the table caption
emptyCells Sets whether or not to show empty cells in a table
tableLayout Sets the algorithm used to display the table cells, rows, and columns

Text properties

Color Sets the color of the text


Font Sets all font properties in one
fontFamily Sets the font of an element
fontSize Sets the font-size of an element
fontSizeAdjust Sets/adjusts the size of a text
fontStretch Sets how to condense or stretch a font
fontStyle Sets the font-style of an element
fontVariant Displays text in a small-caps font
fontWeight Sets the boldness of the font
letterSpacing Sets the space between characters
lineHeight Sets the distance between lines
Quotes Sets which quotation marks to use in a text
textAlign Aligns the text
textDecoration Sets the decoration of a text
textIndent Indents the first line of text
textShadow Sets the shadow effect of a text
textTransform Sets capitalization effect on a text
whiteSpace Sets how to handle line-breaks and white-space in a text
wordSpacing Sets the space between words in a text

Textarea object
Textarea Object Properties

accessKey Sets or returns the keyboard key to access a textarea


Cols Sets or returns the width of a textarea
defaultValue Sets or returns the default text in a textarea
Disabled Sets or returns whether or not a textarea should be disabled
Form Returns a reference to the form that contains the textarea
Id Sets or returns the id of a textarea
Name Sets or returns the name of a textarea
readOnly Sets or returns whether or not a textarea should be read-only
Rows Sets or returns the height of a textarea
tabIndex Sets or returns the tab order for the textarea
Type Returns the type of the form element
Value Sets or returns the text in a textarea