object htmlinputelement что значит

Javascript, viewing [object HTMLInputElement]

How to get the data, that were added in text field, where my input type is text?

object htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значит

6 Answers 6

Chrome Developer Tools has a Properties tab which shows useful DOM attributes.

Also see MDN for a reference.

See an example in this jsFiddle.

Also, and seeing you’re starting to learn HTML, you might consider using console.log() instead of alert() for debugging purposes. It doesn’t interrupt the execution flow of the script, and you can have a general view of all logs in almost every browser with developer tools (except that one, obviously).

object htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значит

It’s not because you are using alert, it will happen when use document.write() too. This problem generally arises when you name your id or class of any tag as same as any variable which you are using in you javascript code. Try by changing either the javascript variable name or by changing your tag’s id/class name.

My code example: bank.html

Javascript code: bank.js

you can have a look and understand the concept from my code. Here i have used a variable named ‘amt’ in JS. You just try to run my code. It will work fine but as you put an [id=»amt»](without square brackets) (which is a variable name in JS code )for div tag in body of html you will see the same error that you are talking about. So simple solution is to change either the variable name or the id or class name.

Источник

Object htmlinputelement что значит

Note: Depending upon the environment in which the page is being viewed, the value property may be read-only for the file upload input type. For the «password» input type, the actual value returned may be masked to prevent unauthorized use. See the INPUT element definition in [HTML 4.01].

HTMLInputElementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитElement Traversal childElementCount : NumberHTMLInputElementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитNon-Standard specified : BooleanLoading of a resource has been aborted.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитA control loses the input focus and its value has been modified since gaining focus.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитA pointing device button is clicked over an element.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитA pointing device button is clicked twice over an element.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитRefer to Activation requests and behavior.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитOccurs after the namespaceURI and/or the nodeName of a Attr node have been modified (e.g., the attribute was renamed using Document.renameNode()).Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитOccurs after Attr.value has been modified and after an Attr node has been added to or removed from an Element.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитGecko-Specific Fired on a Window object when a document’s DOM content is finished loading, but unlike «load», does not wait until all images are loaded.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитOccurs after the namespaceURI and/or the nodeName of an Element node have been modified (e.g., the element was renamed using Document.renameNode()).Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитGecko-Specific Same as DOMContentLoaded, but also fired for enclosed frames.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитGecko-Specific The DOMMouseScroll event is sent when the mouse wheel is moved.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитA node has been added as a child of another node or, in case of Attr nodes, has been added to an Element.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитA node has been inserted into a document, either through direct insertion of the node or insertion of a subtree in which it is contained; Attr nodes are considered part of an Element’s subtree.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитA node is being removed from its parent node or, in case of Attr nodes, removed from its ownerElement.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитA node is being removed from a document, either through direct removal of the node or removal of a subtree in which it is contained; Attr nodes are considered part of an Element’s subtree.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитThis is a general event for notification of all changes to the document.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитGecko-Specific Fired when the window is about to be closed by window.close().Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитA resource failed to load, or has been loaded but cannot be interpreted according to its semantics such as an invalid image, a script execution error, or non-well-formed XML.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитThe DOM Implementation finishes loading the resource (such as the document) and any dependent resources (such as images, style sheets, or scripts).Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитA pointing device button is pressed over an element.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитA pointing device is moved while it is over an element.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитA pointing device is moved away from an element.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитA pointing device is moved onto an element.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитA pointing device button is released over an element.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитA mouse wheel has been rotated around the y-axis.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитGecko-Specific | Firefox 3.5+ The MozAfterPaint event is fired whenever content is repainted.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитGecko-Specific | Firefox 3.5+ Regular mouse wheels can only scroll with a per-line resolution.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитA form, such as a [HTML 4.01] or [XHTML 1.0] form, is reset.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитA document view or an element has been resized.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитA document view or an element has been scrolled.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитA form, such as a [HTML 4.01] or [XHTML 1.0] form, is submitted.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитOne or more characters have been entered.Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значитThe DOM implementation removes from the environment the resource (such as the document) or any dependent resources (such as images, style sheets, scripts).Elementobject htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значит

A comma-separated list of content types that a server processing this form will handle correctly.

Implementation
public function get accept():DOMString
public function set accept(value:DOMString):void

A single character access key to give access to the form control.

Implementation
public function get accessKey():DOMString
public function set accessKey(value:DOMString):void

Aligns this object (vertically or horizontally) with respect to its surrounding text.

Implementation
public function get align():DOMString
public function set align(value:DOMString):void

Alternate text for user agents not rendering the normal content of this element.

Implementation
public function get alt():DOMString
public function set alt(value:DOMString):void

When the type attribute of the element has the value «radio» or «checkbox», this represents the current state of the form control, in an interactive user agent. Changes to this attribute change the state of the form control, but do not change the value of the HTML checked attribute of the INPUT element.

Note: During the handling of a click event on an input element with a type attribute that has the value «radio» or «checkbox», some implementations may change the value of this property before the event is being dispatched in the document. If the default action of the event is canceled, the value of the property may be changed back to its original value. This means that the value of this property during the handling of click events is implementation dependent.

Implementation
public function get checked():Boolean
public function set checked(value:Boolean):void

When type has the value «radio» or «checkbox», this represents the HTML checked attribute of the element. The value of this attribute does not change if the state of the corresponding form control, in an interactive user agent, changes.

Implementation
public function get defaultChecked():Boolean
public function set defaultChecked(value:Boolean):void

When the type attribute of the element has the value «text», «file» or «password», this represents the HTML value attribute of the element. The value of this attribute does not change if the contents of the corresponding form control, in an interactive user agent, changes.

Implementation
public function get defaultValue():DOMString
public function set defaultValue(value:DOMString):void

The control is unavailable in this context.

Implementation
public function get disabled():Boolean
public function set disabled(value:Boolean):void

Returns the FORM element containing this control. Returns null if this control is not within the context of a form.

Implementation
public function get form():HTMLFormElement

Maximum number of characters for text fields, when type has the value «text» or «password».

Implementation
public function get maxLength():Number
public function set maxLength(value:Number):void

Form control or object name when submitted with a form

Implementation
public function get name():DOMString
public function set name(value:DOMString):void

The onblur event occurs when an element loses focus either by the pointing device or by tabbing navigation.

Implementation
public function get onblur():Function
public function set onblur(value:Function):void

The onchange event occurs when a control loses the input focus and its value has been modified since gaining focus.

Implementation
public function get onchange():Function
public function set onchange(value:Function):void

The onfocus event occurs when an element receives focus either by the pointing device or by tabbing navigation.

Implementation
public function get onfocus():Function
public function set onfocus(value:Function):void

The onselect event occurs when a user selects some text in a text field.

Implementation
public function get onselect():Function
public function set onselect(value:Function):void

This control is read-only. Relevant only when type has the value «text» or «password».

Implementation
public function get readOnly():Boolean
public function set readOnly(value:Boolean):void

Size information. The precise meaning is specific to each type of field.

Implementation
public function get size():Number
public function set size(value:Number):void

When the type attribute has the value «image», this attribute specifies the location of the image to be used to decorate the graphical submit button.

Implementation
public function get src():DOMString
public function set src(value:DOMString):void

Index that represents the element’s position in the tabbing order.

Implementation
public function get tabIndex():Number
public function set tabIndex(value:Number):void

The type of control created (all lower case).

Implementation
public function get type():DOMString
public function set type(value:DOMString):void

Use client-side image map.

Implementation
public function get useMap():DOMString
public function set useMap(value:DOMString):void

When the type attribute of the element has the value «text», «file» or «password», this represents the current contents of the corresponding form control, in an interactive user agent. Changing this attribute changes the contents of the form control, but does not change the value of the HTML value attribute of the element. When the type attribute of the element has the value «button», «hidden», «submit», «reset», «image», «checkbox» or «radio», this represents the HTML value attribute of the element.

Implementation
public function get value():DOMString
public function set value(value:DOMString):void

Removes keyboard focus from this element.

Simulate a mouse-click. For INPUT elements whose type attribute has one of the following values: «button», «checkbox», «radio», «reset», or «submit».

Gives keyboard focus to this element.

Select the contents of the text area. For INPUT elements whose type attribute has one of the following values: «text», «file», or «password».

Источник

Web/API/HTMLInputElement

The HTMLInputElement interface provides special properties and methods for manipulating the options, layout, and presentation of elements.

Contents

Properties

Properties related to the parent form

form Read only HTMLFormElement object: Returns a reference to the parent element.
formAction string : Returns / Sets the element’s formaction attribute, containing the URI of a program that processes information submitted by the element. This overrides the action attribute of the parent form.
formEnctype string : Returns / Sets the element’s formenctype attribute, containing the type of content that is used to submit the form to the server. This overrides the enctype attribute of the parent form.
formMethod string : Returns / Sets the element’s formmethod attribute, containing the HTTP method that the browser uses to submit the form. This overrides the method attribute of the parent form.
formNoValidate Boolean : Returns / Sets the element’s formnovalidate attribute, indicating that the form is not to be validated when it is submitted. This overrides the novalidate attribute of the parent form.
formTarget string : Returns / Sets the element’s formtarget attribute, containing a name or keyword indicating where to display the response that is received after submitting the form. This overrides the target attribute of the parent form.
Properties that apply to any type of input element that is not hidden

name string : Returns / Sets the element’s name attribute, containing a name that identifies the element when submitting the form.
type string : Returns / Sets the element’s type attribute, indicating the type of control to display. See type attribute of for possible values.
disabled Boolean : Returns / Sets the element’s disabled attribute, indicating that the control is not available for interaction. The input values will not be submitted with the form. See also readonly
autofocus Boolean : Returns / Sets the element’s autofocus attribute, which specifies that a form control should have input focus when the page loads, unless the user overrides it, for example by typing in a different control. Only one form element in a document can have the autofocus attribute. It cannot be applied if the type attribute is set to hidden (that is, you cannot automatically set focus to a hidden control).
required Boolean : Returns / Sets the element’s required attribute, indicating that the user must fill in a value before submitting a form.
value

string : Returns / Sets the current value of the control. Note: If the user enters a value different from the value expected, this may return an empty string.

on : the browser can autocomplete the value using previously stored value off : the user must explicity enter a value

selectionStart unsigned long : Returns / Sets the beginning index of the selected text. When nothing is selected, this returns the position of the text input cursor (caret) inside of the element.
selectionEnd unsigned long : Returns / Sets the end index of the selected text. When there’s no selection, this returns the offset of the character immediately following the current text input cursor position.
selectionDirection string : Returns / Sets the direction in which selection occurred. Possible values are:

forward if selection was performed in the start-to-end direction of the current locale backward for the opposite direction none if the direction is unknown

double : Returns the value of the element, interpreted as one of the following, in order:

Methods

Events

Listen to these events using addEventListener() or by assigning an event listener to the oneventname property of this interface:

Specifications

Browser compatibility

The compatibility table on this page is generated from structured data. If you’d like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
HTMLInputElementChrome

Samsung Internet Android

Samsung Internet Android

Samsung Internet Android

Samsung Internet Android

IE Partial support 10

Partial support 10

Notes ‘ This property is read-only.

Источник

Setter for HTMLInputElement.value

I’d like to subscribe for all changes of value property in all inputs using custom setter:

If I use this.value = newValue; I’m getting Maximum call stack size exceeded which is quite right but.

Nevermind. What should I call to change value in correct way? Here is JSFIDDLE with more detailed explanation.

object htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значит

5 Answers 5

Contrary to what the accepted answer says, this can be achieved using JavaScript.

We use a IIFE to pass in the original definition for value and then call the original set function from within our new definition.

object htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значит

This worked for me. Define the value property for specific instance of HTMLInputElement, so you can use parent’s value property.

object htmlinputelement что значит. Смотреть фото object htmlinputelement что значит. Смотреть картинку object htmlinputelement что значит. Картинка про object htmlinputelement что значит. Фото object htmlinputelement что значит

You can’t, for a couple of reasons:

Host-provided objects don’t have to allow property redefinition. If it worked on one browser, it may not work on another.

HTMLInputElement exposes no way to access the current value other than the value property. There’s no corresponding attribute, for instance, that would let you do an end-run around the value property (the value attribute is the default value, not the current value, of an input).

Источник

Object htmlinputelement что значит

И нтерфейс HTMLFormElement соответствует элементу FORM. Он имеет следующие свойства:

СвойствоТипАтрибутMSHTMLGecko
acceptCharsetDOMStringaccept-charsetДаДа
actionDOMStringactionДаДа
elementsHTMLCollectionКоллекция всех управляющих элементов данной формы (неизменяемая).ДаДа
enctypeDOMStringenctypeencodingenctype, encoding
lengthцелыйКоличество управляющих элементов в данной форме (неизменяемое).ДаДа
methodDOMStringmethodДаДа
nameDOMStringnameДаДа
targetDOMStringtargetДаДа

К роме того, данный интерфейс поддерживает два метода, управляющие пересылкой формы:

МетодРезультатОписаниеMSHTMLGecko
reset()НетИнициализирует форму (эквивалентно кнопке reset).ДаДа
submit()НетПересылает форму (эквивалентно кнопке submit).ДаДа

И нтерфейс HTMLInputElement соответствует элементу INPUT. Он имеет следующие свойства:

СвойствоТипАтрибутMSHTMLGecko
acceptDOMStringacceptИгнорируетсяИгнорируется
accessKeyDOMStringaccesskeyДаДа
alignDOMStringalign (морально устаревший)ДаДа
altDOMStringaltДаДа
checkedлогическийТекущее значение checked (для флажков и переключателей).ДаДа
defaultCheckedлогическийНачальное значение checked (для флажков и переключателей).ДаДа
defaultValueDOMStringНачальное значение value (для ввода текста, пароля и выбора файлов).ДаДа
disabledлогическийdisabledДаДа
formHTMLFormElementУказатель на элемент FORM, содержащий данный элемент, или null (неизменяемый).ДаДа
maxLengthцелыйmaxlength (для полей ввода текста и пароля)ДаДа
readOnlyлогическийreadonly (для полей ввода текста и пароля)ДаДа
sizeDOMStringsizeДаДа
srcDOMStringsrc (для графических кнопок)ДаДа
tabIndexцелыйtabindexДаДа
typeDOMStringtypeДаДа
useMapDOMStringusemapДаДа
valueDOMStringТекущее значение value.ДаДа

К роме того, данный интерфейс поддерживает следующие методы:

МетодРезультатОписаниеMSHTMLGecko
blur()НетУдаляет фокус с данного элемента.ДаДа
click()НетИмитирует щелчок кнопки мыши (для кнопок, флажков и переключателей).ДаДа
focus()НетПомещает фокус на данный элемент.ДаДа
НетВыбирает содержимое текстового поля (для полей ввода текста, пароля и селекторов файлов).ДаДа

Интерфейс HTMLButtonElement соответствует элементу BUTTON. Он имеет следующие свойства:

СвойствоТипАтрибутMSHTMLGecko
accessKeyDOMStringaccesskeyДаДа
disabledлогическийdisabledДаДа
formHTMLFormElementУказатель на элемент FORM, содержащий данный элемент, или null (неизменяемый).ДаДа
nameDOMStringnameДаДа
tabIndexцелыйtabindexДаДа
typeDOMStringtype (неизменяемый)ДаДа
valueDOMStringvalueДаДа

И нтерфейс HTMLSelectElement соответствует элементу SELECT. Он имеет следующие свойства:

К роме того, данный интерфейс поддерживает следующие методы:

МетодРезультатОписаниеMSHTMLGecko
add(element, before)НетДобавляет HTML-элемент element в коллекцию options перед HTML-элементом before. Если before равен null, то добавляет в конец коллекции.ДаДа
blur()НетУдаляет фокус с данного элемента.ДаДа
focus()НетПомещает фокус на данный элемент.ДаДа
НетУдаляет HTML-элемент с номером index, считая с нуля, из коллекции options. Если такого элемента нет, то не делает ничего.ДаДа

Интерфейс HTMLOptGroupElement соответствует элементу OPTGROUP. Он имеет следующие свойства:

СвойствоТипАтрибутMSHTMLGecko
disabledлогическийdisabledДаДа
labelDOMStringlabelДаДа

И нтерфейс HTMLOptionElement соответствует элементу OPTION. Он имеет следующие свойства:

СвойствоТипАтрибутMSHTMLGecko
defaultSelectedлогическийНачальное значение selected.ДаДа
disabledлогическийdisabledДаДа
formHTMLFormElementУказатель на элемент FORM, содержащий данный элемент, или null (неизменяемый).ДаДа
indexцелыйНомер данного элемента в содержащем его элементе SELECT, считая с нуля (неизменяемый).ДаДа
labelDOMStringlabelДаДа
selectedлогическийТекущее значение selected.ДаДа
textDOMStringТекст, содержащийся в данном элементе (неизменяемый).ДаДа
valueDOMStringvalueДаДа

И нтерфейс HTMLTextAreaElement соответствует элементу TEXTAREA. Он имеет следующие свойства:

СвойствоТипАтрибутMSHTMLGecko
accessKeyDOMStringaccesskeyДаДа
colsцелыйcolsДаДа
defaultValueDOMStringНачальное содержимое элемента.ДаДа
disabledлогическийdisabledДаДа
formHTMLFormElementУказатель на элемент FORM, содержащий данный элемент, или null (неизменяемый).ДаДа
nameDOMStringnameДаДа
readOnlyлогическийreadonlyДаДа
rowsцелыйrowsДаДа
tabIndexцелыйtabindexДаДа
typeDOMStringСтрока «textarea» (неизменяемая).ДаДа
valueDOMStringТекущее содержимое элемента.ДаДа

К роме того, данный интерфейс поддерживает следующие методы:

МетодРезультатОписаниеMSHTMLGecko
blur()НетУдаляет фокус с данного элемента.ДаДа
focus()НетПомещает фокус на данный элемент.ДаДа
НетВыбирает содержимое текстового поля.ДаДа

И нтерфейс HTMLLabelElement соответствует элементу LABEL. Он имеет следующие свойства:

СвойствоТипАтрибутMSHTMLGecko
accessKeyDOMStringaccesskeyДаДа
formHTMLFormElementУказатель на элемент FORM, содержащий данный элемент, или null (неизменяемый).ДаДа
htmlForDOMStringforДаДа

И нтерфейс HTMLFieldSetElement соответствует элементу FIELDSET. Он имеет единственное свойство:

СвойствоТипАтрибутMSHTMLGecko
formHTMLFormElementУказатель на элемент FORM, содержащий данный элемент, или null (неизменяемый).ДаДа

И нтерфейс HTMLLegendElement соответствует элементу LEGEND. Он имеет следующие свойства:

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *