JavaScript API overview
Since Drupal 8, the available JavaScript files, which were referenced in .info files in Drupal 7, are now referenced in .yml files
Accessibility tools for JavaScript in Drupal
Tools include: Announce page updates aurally
Add JavaScript to Your Theme or Module
Attach JavaScript to your modules or themes following these easy steps.
AJAX Forms
Using AJAX callbacks to dynamically react on user input, alter form elements, show dialog boxes or run custom Javascript functions.
Messages API
Display status messages by the JavaScript API from Drupal core.
Theming in JavaScript
Allow HTML added by JavaScript to be overridden by themes.
Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.