Skip to main content

A JavaScript Primer for Drupal

  • Chapter
Drupal 8 for Absolute Beginners
  • 1264 Accesses

Abstract

So now you know what HTML (HyperText Markup Language) and CSS (Cascading Style Sheets) are, and you’ve come to know all the different CSS selectors and HTML elements available to you to create very rich web pages. So now let’s add some JavaScript to make your pages dynamic and very “Web 2.0.” JavaScript lets you program your web page to respond to users moving their mouse, or clicking a particular HTML element, or maybe you want some time-based events to occur. JavaScript is very exciting and can add lots of cool features to your site. In this chapter you’ll learn to add JavaScript to web pages; then in Chapter 8 you’ll learn to add JavaScript to custom-created Drupal pages. Remember that HTML, CSS, and JavaScript can all run independently of Drupal, but the Drupal system does use these same building blocks to create pages.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2015 James Barnett

About this chapter

Cite this chapter

Barnett, J. (2015). A JavaScript Primer for Drupal. In: Drupal 8 for Absolute Beginners. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6467-5_7

Download citation

Publish with us

Policies and ethics