Премини към съдържанието
Форумът в приложение

По-лесно сърфиране. Научи повече.

Kaldata.com - Форуми

Приложение на форума на цял екран с push известия, значки и други.

За да инсталирате това приложение на iOS и iPadOS
  1. Докоснете Иконата за споделяне в Safari
  2. Превъртете менюто и докоснете Добавяне към началния екран.
  3. Докоснете Добавяне в горния десен ъгъл.
За да инсталирате това приложение на Android
  1. Докоснете менюто с 3 точки (⋮) в горния десен ъгъл на браузъра.
  2. Докоснете Добавяне към началния екран или Инсталиране на приложение.
  3. Потвърдете, като докоснете Инсталиране.

Добре дошли!

Добре дошли в нашите форуми, пълни с полезна информация. Имате проблем с компютъра или телефона си? Публикувайте нова тема и ще намерите решение на всичките си проблеми. Общувайте свободно и открийте безброй нови приятели.

Моля, регистрирайте се за да публикувате тема и да получите пълен достъп до всички функции.

 

JavaScript methods

Featured Replies

Здравейте,

вчера си поиграх малко,та съм сложила на един документ г/д методите на Javascript.

Може да са полезни на някой и затова ги поствам тук : -)

List with Javascript methods

The StringObject

The String object let's you work with text.

Syntax for creating a String object:

var myStr=new String(string);

StringObject 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

TheDate 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

indexinputLength -> Sets or returns the number of elements in an array

Prototype

Allows you to add properties and methods to the object

Array Object MethodsMethod

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

TheBoolean Object

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

Syntax for creating a Boolean object:

var myBool=new Boolean(value)

BooleanObject 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; varsqrt_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 E ^ x

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

The window object represents an open window in a browser.

If a document contain frames (<frame> or <iframe> tags), the browser creates one window object for the HTML document, and one additional window object for each frame.

file:///C:%5CUsers%5CEEA78%7E1.MAR%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_image001.gifNote: There is no public standard that applies to the Window object, but all major browsers support it.

Window Object Properties

Property

Description

closed

Returns a Boolean value indicating whether a window has been closed or not

defaultStatus

Sets or returns the default text in the statusbar of a window

document

Returns the Document object for the window (See Document object)

frames

Returns an array of all the frames (including iframes) in the current window

history

Returns the History object for the window (See History object)

innerHeight

Sets or returns the inner height of a window's content area

innerWidth

Sets or returns the inner width of a window's content area

length

Returns the number of frames (including iframes) in a window

location

Returns the Location object for the window (See Location object)

name

Sets or returns the name of a window

navigator

Returns the Navigator object for the window (See Navigator object)

opener

Returns a reference to the window that created the window

outerHeight

Sets or returns the outer height of a window, including toolbars/scrollbars

outerWidth

Sets or returns the outer width of a window, including toolbars/scrollbars

pageXOffset

Returns the pixels the current document has been scrolled (horizontally) from the upper left corner of the window

pageYOffset

Returns the pixels the current document has been scrolled (vertically) from the upper left corner of the window

parent

Returns the parent window of the current window

screen

Returns the Screen object for the window (See Screen object)

screenLeft

Returns the x coordinate of the window relative to the screen

screenTop

Returns the y coordinate of the window relative to the screen

screenX

Returns the x coordinate of the window relative to the screen

screenY

Returns the y coordinate of the window relative to the screen

self

Returns the current window

status

Sets the text in the statusbar of a window

top

Returns the topmost browser window

Window Object Methods

Method

Description

alert()

Displays an alert box with a message and an OK button

blur()

Removes focus from the current window

clearInterval()

Clears a timer set with setInterval()

clearTimeout()

Clears a timer 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 content of the current window

prompt()

Displays a dialog box that prompts the visitor for input

resizeBy()

Resizes the window by the specified pixels

resizeTo()

Resizes the window to the specified width and height

scroll()

scrollBy()

Scrolls the content by the specified number of pixels

scrollTo()

Scrolls the content to the specified coordinates

setInterval()

Calls a function or evaluates an expression at specified intervals (in milliseconds)

setTimeout()

Calls a function or evaluates an expression after a specified number of milliseconds

Navigator Object

The navigator object contains information about the browser.

file:///C:%5CUsers%5CEEA78%7E1.MAR%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_image001.gifNote: There is no public standard that applies to the navigator object, but all major browsers support it.

Navigator Object Properties

Property

Description

appCodeName

Returns the code name of the browser

appName

Returns the name of the browser

appVersion

Returns the version information of the browser

cookieEnabled

Determines whether cookies are enabled in the browser

onLine

Boolean, returns true if the browser is on line, otherwise false.

platform

Returns for which platform the browser is compiled

userAgent

Returns the user-agent header sent by the browser to the server

Navigator Object Methods

Method

Description

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 contains information about the visitor's screen.

file:///C:%5CUsers%5CEEA78%7E1.MAR%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_image001.gifNote: There is no public standard that applies to the screen object, but all major browsers support it.

Screen Object Properties

Property

Description

availHeight

Returns the height of the screen (excluding the Windows Taskbar)

availWidth

Returns the width of the screen (excluding the Windows Taskbar)

colorDepth

Returns the bit depth of the color palette for displaying images

height

Returns the total height of the screen

pixelDepth

Returns the color resolution (in bits per pixel) of the screen

width

Returns the total width of the screen

History Object

The history object contains the URLs visited by the user (within a browser window).

The history object is part of the window object and is accessed through the window.history property.

file:///C:%5CUsers%5CEEA78%7E1.MAR%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_image001.gifNote: There is no public standard that applies to the history object, but all major browsers support it.

History Object Properties

Property

Description

length

Returns the number of URLs in the history list

History Object Methods

Method

Description

back()

Loads the previous URL in the history list

forward()

Loads the next URL in the history list

go()

Loads a specific URL from the history list

Location Object

The location object contains information about the current URL.

The location object is part of the window object and is accessed through the window.location property.

file:///C:%5CUsers%5CEEA78%7E1.MAR%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_image001.gifNote: There is no public standard that applies to the location object, but all major browsers support it.

Location Object Properties

Property

Description

hash

Returns the anchor portion of a URL

host

Returns the hostname and port of a URL

hostname

Returns the hostname of a URL

href

Returns the entire URL

pathname

Returns the path name of a URL

port

Returns the port number the server uses for a URL

protocol

Returns the protocol of a URL

search

Returns the query portion of a URL

Location Object Methods

Method

Description

assign()

Loads a new document

reload()

Reloads the current document

replace()

Replaces the current document with a new one

Document Object

Each HTML document loaded into a browser window becomes a Document object.

The Document object provides access to all HTML elements in a page, from within a script.

Tip: The Document object is also part of the Window object, and can be accessed through the window.document property.

Note: The Document object can also use the properties and methods of the Node object.

W3C: W3C Standard.

Document Object Properties

Property

Description

W3C

anchors

Returns a collection of all the anchors in the document

Yes

applets

Returns a collection of all the applets in the document

Yes

body

Returns the body element of the document

Yes

cookie

Returns all name/value pairs of cookies in the document

Yes

documentMode

Returns the mode used by the browser to render the document

No

domain

Returns the domain name of the server that loaded the document

Yes

forms

Returns a collection of all the forms in the document

Yes

images

Returns a collection of all the images in the document

Yes

lastModified

Returns the date and time the document was last modified

No

links

Returns a collection of all the links in the document

Yes

readyState

Returns the (loading) status of the document

No

referrer

Returns the URL of the document that loaded the current document

Yes

title

Sets or returns the title of the document

Yes

URL

Returns the full URL of the document

Yes

Document Object Methods

Method

Description

W3C

close()

Closes the output stream previously opened with document.open()

Yes

getElementsByName()

Accesses all elements with a specified name

Yes

open()

Opens an output stream to collect the output from document.write() or document.writeln()

Yes

write()

Writes HTML expressions or Javascript code to a document

Yes

writeln()

Same as write(), but adds a newline character after each statement

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 -> 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

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 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

RadioObject 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.

Synta x 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

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 thecounteris 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 thecounter 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 textareaTop of Form

Редактирано от helena 2 3 4 5 1 (преглед на промените)

Архивирана тема

Темата е твърде стара и е архивирана. Не можете да добавяте нови отговори в нея, но винаги можете да публикувате нова тема, в която да продължи дискусията. Регистрирайте се или влезте във вашия профил за да публикувате нова тема.

Разглеждащи това в момента 0

  • Няма регистрирани потребители разглеждащи тази страница.

Дарение

  • Подкрепи съществуването на форума - направи дарение
    32%
    Дарени 315 € от нужните 1 000 €

Бюлетин

Получавайте известие, когато има важна промяна или новина свързана с форума.

Профил

Навигация

Търсене

Търсене

Конфигуриране на push известия в браузъра

Chrome (Android)
  1. Докоснете иконата на катинар до адресната лента.
  2. Докоснете Разрешения → Известия.
  3. Променете предпочитанията си.
Chrome (Desktop)
  1. Кликнете върху иконата на катинар в адресната лента.
  2. Изберете Настройки на сайта.
  3. Намерете Известия и коригирайте предпочитанията си.