В связи с переходом на новый движок... возможны сбои в работе! Простите!
Работы производятся прямо сейчас 27-04-2024! 🞨
Меню :
js (244)



Blog (1409)
php (331)
js (244)
html (147)
css (131)
html tags (62)
js tag (56)
jquery (42)
text (37)
js method (36)
js date (33)
php array (33)
form html (30)
online (29)
fonts (26)
Показать еще :
ruweb.net (25)
foto (22)
php file (20)
atom (20)
forum (19)
svg (18)
input (18)
php date (17)
hosting (17)
info (16)
html book (16)
php time (16)
board (16)
color (15)
js url (14)
js events (14)
img (14)
js time (14)
select (13)
htaccess (13)
notepad (13)
знак (13)
osclass (13)
php path (12)
php img (12)
table (12)
dw block (12)
download (12)
keyboard (12)
jsphp (11)
form (11)
icon (11)
mouse (10)
yandex (10)
keyframes (10)
js delete (10)
dosite (9)
chart (9)
hover (9)
browser (8)
vs code (8)
php post (7)
comment (7)
php url (7)
list (6)
iframe (6)
canvas (6)
click (6)
adminka (6)
php get (6)
mysql (6)
js id (5)
reg.ru (5)
value (5)
ftp (5)
mb (5)
js math (5)
heading (5)
tag a (5)
year (5)
week (4)
bbcode (4)
xml (4)
js form (4)
symbols (4)
base64 (4)
ssl (4)
day (4)
games (4)
task (4)
submit (4)
month (4)
scandir (4)
pages (4)
php var (4)
нок (4)
vk (4)
console (4)
domen (3)
padding (3)
money (3)
ucoz (3)
js post (3)
js img (3)
line (3)
jquery post (3)
https (3)
numbers (3)
js hash (3)
куб (3)
captcha (3)
qr kod (2)
seo (2)
js vars (2)
prompt (2)
counter (2)
details (2)
height (2)
video (2)
youtube (2)
sitemap (2)
tag hr (2)
typeof (2)
рся (2)
google (2)
arrows (2)
cursor (1)
нод (1)
rutube (1)
windows (1)
archive (1)
scroll (1)
jino (1)
smile (1)
speed (1)

Document js

Каждая веб-страница, которая загружается в браузер, имеет свой собственный объект document. Интерфейс документа служит точкой входа для получения содержимого веб-страницы (всего DOM - дерева), включая все теги html, а также обеспечивает функциональность, которая является глобальной для документа, например, для получения URL-адреса страницы или создания новых элементов в документе).

О документе в javascript

  1. что такое Document в js
  2. Все свойства Document в js
  3. Все свойства Document в js о которых уже написано на сайте:

  1. Что такое Document в js

    Объект document позволяет работать со всей HTML структурой сайта за счёт языка javascript.

    Document является корневым объектом в DOM-структуре сайта.

    Через объект вы можете работать со всеми HTML объектами на странице сайта.

    Вы можете находить элементы по их ID, классу или имени тега и добавлять к ним свойства и менять их значения. Также вы можете работать с HTML разметкой, добавляя или удаляя элементы из неё.

    Почему в спецификацию Document js не включены?

    Если вы были внимательны к javascript, то вы должны были задастся логичным вопросом...

    Почему document.location включен в спецификацию "Document js".

    А дочерние методы не включены?

    Ответ : Почему в спецификацию Document js не включены?

    Нигде внятного ответа не нашел, но выскажу свое мнение...

    Это как домен первого и второго уровня... например:

    .ru

    dwweb.ru

    Оба на борту имеют домен первого уровня... но первый является доменом первого уровня, а второй доменом первого уровня не является...


  2. Все свойства Document в js

    Смотри : все свойства Document в js о которых уже написано на сайте:

    Document.all Deprecated Non-standard

    Обеспечивает доступ ко всем элементам с идентификаторами id. Это нестандартный интерфейс, вместо него рекомендуется использовать метод Document.getElementById().


    Document.async Deprecated

    Используется с document .load чтобы обозначить асинхронный запрос.


    Document.characterSet Экспериментальная возможность

    Возвращает кодировку документа.


    Document.compatMode Экспериментальная возможность

    Указывает в каком режиме (Quirks или Strict) рендерился документ.


    Document.contentType Экспериментальная возможность

    Возвращает Content-Type из MIME заголовка текущего документа.


    Document.doctype

    Возвращает Document Type Definition (DTD) текущего документа .


    Document.documentElement

    Возвращает Element, который является первым дочерним элементом документа. Для HTML документов это HTML-элемент.


    Document.documentURI

    Возвращает URL документа.


    Document.domConfig Deprecated

    Должен вернуть DOMConfiguration объект.


    Document.implementation (en-US)

    Возвращает DOM implementation связанную с текущим документом.


    Document.inputEncoding (en-US) Deprecated

    Возвращает кодировку, которая использовалась во время парсинга документа.


    Document.lastStyleSheetSet (en-US)

    Возвращает имя последнего включённого набора таблиц стилей. Имеет значение null , пока таблица стилей не будет изменена путём установки значения selectedStyleSheetSet (en-US).


    Document.mozSyntheticDocument (en-US) Non-standard

    true если этот документ является синтетическим, например, отдельные изображения, видео, аудио файлы, или тому подобные.


    Document.mozFullScreen (en-US) Non-standard

    true когда документ находится в full-screen mode.


    Document.mozFullScreenElement (en-US) Non-standard

    Элемент, который в данный момент находится в полноэкранном режиме для этого документа.


    Document.mozFullScreenEnabled (en-US) Non-standard

    true if calling element.mozRequestFullscreen() (en-US) would succeed in the curent document .


    Document.pointerLockElement (en-US) Экспериментальная возможность

    Returns the element set as the target for mouse events while the pointer is locked. null if lock is pending, pointer is unlocked, or if the target is in another document .


    Document.preferredStyleSheetSet (en-US)

    Returns the preferred style sheet set as specified by the page author.


    Document.selectedStyleSheetSet (en-US)

    Returns which style sheet set is currently in use.


    Document.styleSheets (en-US)

    Returns a list of the style sheet objects on the current document .


    Document.styleSheetSets (en-US)

    Returns a list of the style sheet sets available on the document .


    Document.xmlEncoding (en-US) Deprecated

    Returns the encoding as determined by the XML declaration.


    Document.xmlStandalone Deprecated

    Returns true if the XML declaration specifies the document to be standalone (e.g., An external part of the DTD affects the document's content), else false.


    Document.xmlVersion (en-US) Deprecated

    Returns the version number as specified in the XML declaration or "1.0" if the declaration is absent.

    The Document interface is extended with the ParentNode interface:

    {{page("/en-US/docs/Web/API/ParentNode","Properties")}}

    Extension for HTML documents

    The Document interface for HTML documents inherit from the HTMLDocument interface or, since HTML5, is extended for such documents:


    Document.activeElement

    Returns the currently focused element.


    Document.alinkColor Deprecated

    Returns or sets the color of active links in the document body.


    Document.anchors

    Returns a list of all of the anchors in the document .


    Document.applets Deprecated

    Returns an ordered list of the applets within a document .


    Document.bgColor Deprecated

    Gets/sets the background color of the current document .


    Document.body

    Returns the element of the current document .


    Document.cookie

    Returns a semicolon-separated list of the cookies for that document or sets a single cookie.


    Document.defaultView

    Returns a reference to the window object.


    Document.designMode

    Gets/sets the ability to edit the whole document .


    Document.dir

    Gets/sets directionality (rtl/ltr) of the document .


    Document.domain

    Returns the domain of the current document .


    Document.embeds

    Возвращает список встроенных элементов в текущем документе.


    Document.fgColor (en-US) Deprecated

    Gets/sets the foreground color, or text color, of the current document .


    Document.forms

    Returns a list of the

    elements within the current document .


    Document.head

    Returns the element of the current document .


    Document.height Non-standard

    Gets/sets the height of the current document .


    Document.images

    Returns a list of the images in the current document .


    Document.lastModified (en-US)

    Returns the date on which the document was last modified.


    Document.linkColor (en-US) Deprecated

    Gets/sets the color of hyperlinks in the document .


    Document.links

    Returns a list of all the hyperlinks in the document .


    Document.location

    Возвращает URI текущего документа.

    Смотри здесь

    Document.plugins (en-US)

    Returns a list of the available plugins.


    Document.readyState

    Returns loading status of the document .


    Document.referrer

    Returns the URI of the page that linked to this page.


    Document.scripts

    Returns all the <script> elements on the document .


    Document.title (en-US)

    Возвращает заголовок текущего документа - подробнее...


    Document.URL

    Returns a string containing the URL of the current document .


    Document.vlinkColor (en-US) Deprecated

    Gets/sets the color of visited hyperlinks.


    Document.width (en-US) Non-standard

    Returns the width of the current document .

    Event handlers


    Document.onpointerlockchange Экспериментальная возможность

    Returns the event handling code for the pointerlockchange (en-US) event.


    Document.onpointerlockerror Экспериментальная возможность

    Returns the event handling code for the pointerlockerror (en-US) event.


    Document.onreadystatechange

    Returns the event handling code for the readystatechange event.

    Methods

    Примечание: The Document interface also inherits from the Node and EventTarget interfaces.


    Document.adoptNode(Node node) (en-US)

    Adopt node from an external document .


    Document.captureEvents(String eventName) Deprecated

    See window.captureEvents (en-US).


    Document.caretPositionFromPoint(Number x, Number y) (en-US)

    Gets a CaretPosition (en-US) based on two coordinates.


    Document.createAttribute(String name)

    Creates a new Attr object and returns it.


    Document.createAttributeNS(String namespace, String name) (en-US)

    Creates a new attribute node in a given namespace and returns it.


    Document.createCDATASection(String data) (en-US)

    Creates a new CDATA node and returns it.


    Document.createComment(String comment)

    Creates a new comment node and returns it.


    Document.createDocumentFragment()

    Creates a new document fragment.


    Document.createElement(String name)

    Creates a new element with the given tag name.


    Document.createElementNS(String namespace, String name) (en-US)

    Creates a new element with the given tag name and namespace URI.


    Document.createEntityReference(String name) (en-US)

    Creates a new entity reference object and returns it.


    Document.createEvent(String interface) (en-US)

    Creates an event object.


    Document.createNodeIterator(Node root[, Number whatToShow[, NodeFilter filter]]) (en-US)

    Creates a NodeIterator (en-US) object.


    Document.createProcessingInstruction(String target, String data) (en-US)

    Creates a new ProcessingInstruction (en-US) object.


    Document.createRange()

    Creates a Range object.


    Document.createTextNode(String text)

    Creates a text node.


    Document.createTreeWalker(Node root[, Number whatToShow[, NodeFilter filter]])

    Creates a TreeWalker (en-US) object.


    Document.elementFromPoint(Number x, Number y) (en-US)

    Returns the element visible at the specified coordinates.


    Document.enableStyleSheetsForSet(String name) (en-US)

    Enables the style sheets for the specified style sheet set.


    Document.exitPointerLock() (en-US) Экспериментальная возможность

    Release the pointer lock.


    Document.getElementsByClassName(String className)

    Возвращает список элементов с заданным именем класса.

    Смотри здесь.


    Document.getElementsByTagName(String tagName)

    Возвращает список элементов с заданным именем тега.

    Смотри здесь.


    Document.getElementsByTagNameNS(String namespace, String tagName) (en-US)

    Returns a list of elements with the given tag name and namespace.


    Document.importNode(Node node, Boolean deep)

    Returns a clone of a node from an external document .


    document.mozSetImageElement (en-US) Non-standard

    Allows you to change the element being used as the background image for a specified element ID.


    Document.normalizeDocument()

    Replaces entities, normalizes text nodes, etc.


    Document.releaseCapture() (en-US) Non-standard

    Releases the current mouse capture if it's on an element in this document .


    Document.releaseEvents Non-standard Deprecated

    See window.releaseEvents (en-US).


    document.routeEvent Non-standard Вышла из употребления с версии Gecko 24

    See window.routeEvent.


    Интерфейс документа расширен с помощью интерфейса parentNode:

    (The Document interface is extended with the ParentNode interface:)


    Document.getElementById(String id)

    Возвращает ссылку на объект к идентифицированному элементу.

    Смотри здесь

    Document.querySelector(String selector)

    Смотри здесь

    Document.querySelectorAll(String selector)

    Returns a list of all the Element nodes within the document that match the specified selectors.

    The Document interface is extended with the XPathEvaluator (en-US) interface:


    Document.createExpression(String expression, XPathNSResolver resolver) (en-US)

    Compiles an XPathExpression which can then be used for (repeated) evaluations.


    Document.createNSResolver(Node resolver) (en-US)

    Creates an XPathNSResolver (en-US) object.


    Document.evaluate(String expression, Node contextNode, XPathNSResolver resolver, Number type, Object result)

    Evaluates an XPath expression.

    Extension for HTML documents

    The Document interface for HTML documents inherit from the HTMLDocument interface or, since HTML5, is extended for such documents:


    Document.clear() (en-US) Non-standard Deprecated

    In majority of modern browsers, including recent versions of Firefox and Internet Explorer, this method does nothing.


    Document.close()

    Closes a document stream for writing.


    Document.execCommand(String command[, Boolean showUI[, String value]])

    On an editable document, executes a formating command.


    Document.getElementsByName(String name)

    Returns a list of elements with the given name.


    Document.getSelection()

    Returns a Selection object related to text selected in the document .


    Document.hasFocus()

    Returns true if the focus is currently located anywhere inside the specified document .


    Document.open() (en-US)

    Opens a document stream for writing.


    Document.queryCommandEnabled(String command) (en-US)

    Returns true if the formating command can be executed on the current range.


    Document.queryCommandIndeterm(String command)

    Returns true if the formating command is in an indeterminate state on the current range.


    Document.queryCommandState(String command) (en-US)

    Returns true if the formating command has been executed on the current range.


    Document.queryCommandSupported(String command) (en-US)

    Returns true if the formating command is supported on the current range.


    Document.queryCommandValue(String command)

    Returns the current value of the current range for a formatting command.


    Document.registerElement(String tagname[, Object options])

    Registers a new custom element in the browser and returns a constructor for the new element.


    Document.write(String text)

    Записывает текст в документ .

    Смотри здесь

    Document.writeln(String text)

    Writes a line of text in a document .


  3. Все свойства Document в js о которых уже написано на сайте:

Не стесняемся говорить спасибо!
Помочь проекту DwWeb.ru

Поделиться ссылкой! C друзьями или врагами!

Этим вы очень поможете проекту! Заранее огромное спасибо!

Теги:
Ещё : dwweb.ru есть здесь:
ruweb
Все статьи авторские, при копироавании активная ссылка обязательна DwWeb.ru! © 2015 - 2024 Контакты. Реклама на сайте Лучший хостинг : RUWEB + помощь по RUWEB
Страница загружена за : 0.052319 секунд. Подробнее