Skip to main content

HTML and JavaScript

  • Chapter
  • First Online:
  • 3435 Accesses

Abstract

In this chapter, you finally get your hands dirty in real JavaScript code. You’ll learn how JavaScript interacts with the page structure—defined in HTML—and how to receive data and give back information to your visitors. I start with an explanation of what an HTML document is and how it is structured, and then I explain several ways to create page content via JavaScript. You’ll then hear about the JavaScript developer’s Swiss Army knife—the Document Object Model (DOM)—and how to separate JavaScript and HTML to create now-seamless effects that developers used to create in an obtrusive manner with DHTML.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Russ Ferguson

About this chapter

Cite this chapter

Ferguson, R., Heilmann, C. (2013). HTML and JavaScript. In: Beginning JavaScript with DOM Scripting and Ajax. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-5093-7_4

Download citation

Publish with us

Policies and ethics