Movatterモバイル変換


[0]ホーム

URL:


Menu
×
See More 
Sign In
+1 Get Certified Upgrade Teachers Spaces Bootcamps Get Certified Upgrade Teachers Spaces Bootcamps
   ❮     
     ❯   

JS Reference

JS by CategoryJS by Alphabet

JavaScript

JS ArraysJS BooleanJS ClassesJS DatesJS FunctionJS ErrorJS GlobalJS IteratorsJS JSONJS MapsJS MathJS NumbersJS ObjectsJS OperatorsJS AssignmentJS ArithmeticJS ComparisonJS Logical OperatorsJS Bitwise OperatorsJS Misc OperatorsJS PrecedenceJS PromisesJS ProxyJS ReflectJS RegExp PatternsJS RegExp ReferenceJS SetsJS StatementsJS StringsJS Typed ArraysJS Typed Reference

Window

Window ObjectWindow ConsoleWindow HistoryWindow LocationWindow NavigatorWindow Screen

HTML DOM

HTML DocumentsHTML Elements
accessKeyaddEventListener()after()append()appendChild()attributesbefore()blur()childElementCountchildNodeschildrenclassListclassNameclick()clientHeightclientLeftclientTopclientWidthcloneNode()closest()compareDocumentPosition()contains()contentEditabledirfirstChildfirstElementChildfocus()getAttribute()getAttributeNode()getBoundingClientRect()getElementsByClassName()getElementsByTagName()hasAttribute()hasAttributes()hasChildNodes()idinnerHTMLinnerTextinsertAdjacentElement()insertAdjacentHTML()insertAdjacentText()insertBefore()isContentEditableisDefaultNamespace()isEqualNode()isSameNode()isSupported()langlastChildlastElementChildmatches()namespaceURInextSiblingnextElementSiblingnodeNamenodeTypenodeValuenormalize()offsetHeightoffsetWidthoffsetLeftoffsetParentoffsetTopouterHTMLouterTextownerDocumentparentNodeparentElementpreviousSiblingpreviousElementSiblingquerySelector()querySelectorAll()remove()removeAttribute()removeAttributeNode()removeChild()removeEventListener()replaceChild()scrollHeightscrollIntoView()scrollLeftscrollTopscrollWidthsetAttribute()setAttributeNode()styletabIndextagNametextContenttitle
HTML AttributesHTML CollectionHTML NodeListHTML DOMTokenListHTML Styles
alignContentalignItemsalignSelfanimationanimationDelayanimationDirectionanimationDurationanimationFillModeanimationIterationCountanimationNameanimationTimingFunctionanimationPlayStatebackgroundbackgroundAttachmentbackgroundClipbackgroundColorbackgroundImagebackgroundOriginbackgroundPositionbackgroundRepeatbackgroundSizebackfaceVisibilityborderborderBottomborderBottomColorborderBottomLeftRadiusborderBottomRightRadiusborderBottomStyleborderBottomWidthborderCollapseborderColorborderImageborderImageOutsetborderImageRepeatborderImageSliceborderImageSourceborderImageWidthborderLeftborderLeftColorborderLeftStyleborderLeftWidthborderRadiusborderRightborderRightColorborderRightStyleborderRightWidthborderSpacingborderStyleborderTopborderTopColorborderTopLeftRadiusborderTopRightRadiusborderTopStyleborderTopWidthborderWidthbottomboxShadowboxSizingcaptionSidecaretColorclearclipcolorcolumnCountcolumnFillcolumnGapcolumnRulecolumnRuleColorcolumnRuleStylecolumnRuleWidthcolumnscolumnSpancolumnWidthcounterIncrementcounterResetcssFloatcursordirectiondisplayemptyCellsfilterflexflexBasisflexDirectionflexFlowflexGrowflexShrinkflexWrapfontfontFamilyfontSizefontStylefontVariantfontWeightfontSizeAdjustheightisolationjustifyContentleftletterSpacinglineHeightlistStylelistStyleImagelistStylePositionlistStyleTypemarginmarginBottommarginLeftmarginRightmarginTopmaxHeightmaxWidthminHeightminWidthobjectFitobjectPositionopacityorderorphansoutlineoutlineColoroutlineOffsetoutlineStyleoutlineWidthoverflowoverflowXoverflowYpaddingpaddingBottompaddingLeftpaddingRightpaddingToppageBreakAfterpageBreakBeforepageBreakInsideperspectiveperspectiveOriginpositionquotesresizerightscrollBehaviortableLayouttabSizetextAligntextAlignLasttextDecorationtextDecorationColortextDecorationLinetextDecorationStyletextIndenttextOverflowtextShadowtextTransformtoptransformtransformOrigintransformStyletransitiontransitionPropertytransitionDurationtransitionTimingFunctiontransitionDelayunicodeBidiuserSelectverticalAlignvisibilitywidthwordBreakwordSpacingwordWrapwidowszIndex

HTML Events

HTML EventsHTML Event ObjectsHTML Event PropertiesHTML Event Methods

Web APIs

API CanvasAPI ConsoleAPI FetchAPI FullscreenAPI GeolocationAPI HistoryAPI MediaQueryListAPI StorageAPI ValidationAPI Web

HTML Objects

<a><abbr><address><area><article><aside><audio><b><base><bdo><blockquote><body><br><button><canvas><caption><cite><code><col><colgroup><datalist><dd><del><details><dfn><dialog><div><dl><dt><em><embed><fieldset><figcaption><figure><footer><form><head><header><h1> - <h6><hr><html><i><iframe><img><ins><input> button<input> checkbox<input> color<input> date<input> datetime<input> datetime-local<input> email<input> file<input> hidden<input> image<input> month<input> number<input> password<input> radio<input> range<input> reset<input> search<input> submit<input> text<input> time<input> url<input> week<kbd><label><legend><li><link><map><mark><menu><menuitem><meta><meter><nav><object><ol><optgroup><option><output><p><param><pre><progress><q><s><samp><script><section><select><small><source><span><strong><style><sub><summary><sup><table><tbody><td><tfoot><th><thead><tr><textarea><time><title><track><u><ul><var><video>

Other References

CSSStyleDeclarationJS Conversion


HTML DOM Documents


The Document Object

When an HTML document is loaded into a web browser, it becomes adocument object.

Thedocument object is the root node of the HTML document.

Thedocument object is a property of thewindow object.

Thedocument object is accessed with:

window.document or justdocument

Examples

let url = window.document.URL;
Try it Yourself »
let url = document.URL;
Try it Yourself »

HTML DOM Properties and Methods

Revised January 2026

NameDescription
activeElementReturns the currently focused element in the document
addEventListener()Attaches an event handler to the document
adoptNode()Adopts a node from another document
anchorsDEPRECATED
appletsDEPRECATED
baseURIReturns the absolute base URI of a document
bodySets or returns the document's body (the <body> element)
charsetDEPRECATED
characterSetReturns the character encoding for the document
close()Closes the output stream previously opened with document.open()
cookieReturns all name/value pairs of cookies in the document
createAttribute()Creates an attribute node
createComment()Creates a Comment node with the specified text
createDocumentFragment()Creates an empty DocumentFragment node
createElement()Creates an Element node
createEvent()Creates a new event
createTextNode()Creates a Text node
defaultViewReturns the window object associated with a document, or null if none is available.
designModeControls whether the entire document should be editable or not.
doctypeReturns the Document Type Declaration associated with the document
documentElementReturns the Document Element of the document (the <html> element)
documentModeDEPRECATED
documentURISets or returns the location of the document
domainReturns the domain name of the server that loaded the document
domConfigDEPRECATED
embedsReturns a collection of all <embed> elements the document
execCommand()DEPRECATED
formsReturns a collection of all <form> elements in the document
getElementById()Returns the element that has the ID attribute with the specified value
getElementsByClassName()Returns anHTMLCollection containing all elements with the specified class name
getElementsByName()Returns an liveNodeList containing all elements with the specified name
getElementsByTagName()Returns anHTMLCollection containing all elements with the specified tag name
hasFocus()Returns a Boolean value indicating whether the document has focus
headReturns the <head> element of the document
imagesReturns a collection of all <img> elements in the document
implementationReturns the DOMImplementation object that handles this document
importNode()Imports a node from another document
inputEncodingDEPRECATED
lastModifiedReturns the date and time the document was last modified
linksReturns a collection of all <a> and <area> elements in the document that have a href attribute
normalize()Removes empty Text nodes, and joins adjacent nodes
normalizeDocument()DEPRECATED
open()Opens an HTML output stream to collect output from document.write()
querySelector()Returns the first element that matches a specified CSS selector(s) in the document
querySelectorAll()Returns a staticNodeList containing all elements that matches a specified CSS selector(s) in the document
readyStateReturns the (loading) status of the document
referrerReturns the URL of the document that loaded the current document
removeEventListener()Removes an event handler from the document (that has been attached with theaddEventListener() method)
renameNode()DEPRECATED
scriptsReturns a collection of <script> elements in the document
strictErrorCheckingDEPRECATED
titleSets or returns the title of the document
URLReturns the full URL of the HTML document
write()Writes HTML expressions or JavaScript code to a document
writeln()Same as write(), but adds a newline character after each statement



×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness
of all content. While using W3Schools, you agree to have read and accepted ourterms of use,cookies andprivacy policy.

Copyright 1999-2026 by Refsnes Data. All Rights Reserved.W3Schools is Powered by W3.CSS.

-->
[8]ページ先頭

©2009-2026 Movatter.jp