< / - > - htmx home
  • docs
  • reference
  • patterns
  • extensions
  • essays
  • about
  • docs
  • reference
  • patterns
  • extensions
  • essays
  • about
  • Discord
  • GitHub
Overview

Attributes

  • hx-get
  • hx-post
  • hx-put
  • hx-patch
  • hx-delete
  • hx-trigger
  • hx-swap
  • hx-target
  • hx-select
  • hx-on
  • hx-vals
  • hx-include
  • hx-swap-oob
  • hx-select-oob
  • hx-push-url
  • hx-replace-url
  • hx-headers
  • hx-encoding
  • hx-indicator
  • hx-boost
  • hx-sync
  • hx-confirm
  • hx-validate
  • hx-disable
  • hx-ignore
  • hx-preserve
  • hx-preload
  • hx-optimistic
  • hx-status
  • hx-action
  • hx-method
  • hx-config
  • hx-history-elt

Headers

  • HX-Request
  • HX-Request-Type
  • HX-Current-URL
  • HX-Source
  • HX-Target
  • HX-Boosted
  • HX-History-Restore-Request
  • HX-Trigger
  • HX-Location
  • HX-Redirect
  • HX-Refresh
  • HX-Retarget
  • HX-Reswap
  • HX-Reselect
  • HX-Replace-Url
  • HX-Push-Url

Events

  • htmx:config:request
  • htmx:before:request
  • htmx:after:request
  • htmx:finally:request
  • htmx:before:swap
  • htmx:after:swap
  • htmx:finally:swap
  • htmx:before:cleanup
  • htmx:after:cleanup
  • htmx:confirm
  • htmx:error
  • htmx:abort
  • htmx:before:init
  • htmx:after:init
  • htmx:before:process
  • htmx:after:process
  • htmx:process:{type}
  • htmx:after:implicitInheritance
  • htmx:before:history:update
  • htmx:after:history:update
  • htmx:after:history:push
  • htmx:after:history:replace
  • htmx:before:history:restore
  • htmx:before:viewTransition
  • htmx:after:viewTransition
  • load
  • intersect
  • every
  • htmx:before:response
  • htmx:before:settle
  • htmx:after:settle
  • htmx:response:error

Config

  • htmx.config
  • htmx.config.defaultSwap
  • htmx.config.defaultTimeout
  • htmx.config.extensions
  • htmx.config.history
  • htmx.config.implicitInheritance
  • htmx.config.includeIndicatorCSS
  • htmx.config.indicatorClass
  • htmx.config.logAll
  • htmx.config.mode
  • htmx.config.morphIgnore
  • htmx.config.morphSkip
  • htmx.config.morphSkipChildren
  • htmx.config.noSwap
  • htmx.config.prefix
  • htmx.config.requestClass
  • htmx.config.transitions
  • htmx.version
  • htmx.config.defaultFocusScroll
  • htmx.config.defaultSettleDelay
  • htmx.config.inlineScriptNonce
  • htmx.config.morphScanLimit
  • htmx.config.metaCharacter
  • htmx.config.defaultSwapEmpty

Methods

  • htmx.ajax()
  • htmx.find()
  • htmx.findAll()
  • htmx.on()
  • htmx.onLoad()
  • htmx.parseInterval()
  • htmx.process()
  • htmx.registerExtension()
  • htmx.timeout()
  • htmx.trigger()
  • htmx.swap()

Tags

  • <hx-partial>
Reference
  1. Home
  2. /Reference
  3. /Config
  4. /htmx.version

htmx.version

View as Markdown Open this page as Markdown
For LLMs
llms.txt htmx overview for LLMs
llms-full.txt Complete htmx docs for LLMs

Reports current htmx version (read-only)

The htmx.version property contains the current htmx version string (read-only).

Example

console.log(htmx.version)

Config

htmx.config.transitions

Previous: htmx.config.transitions

Enables View Transitions API support

Config

htmx.config.defaultFocusScroll

Next: htmx.config.defaultFocusScroll

Scrolls to focused element after swap

On this page

Example
Edit page

Links

  • docs
  • reference
  • patterns
  • extensions
  • essays
  • about

Community

  • Discord
  • GitHub
  • @htmx_org
  • Reddit
  • Stack Overflow

Resources

  • Interviews
  • Podcasts
  • Memes
  • Book
  • RSS

Haiku

javascript fatigue:
longing for a hypertext
already in hand

© 2026 · Big Sky Software
esc

No results found

Try a different search term

↑ ↓ to navigate to select outside to close