Skip to main content

An Introduction to Events

  • Chapter
Beginning jQuery
  • 2313 Accesses

Abstract

When you write JavaScript in the browser, you’re writing event-driven code. Most of your code will be executed when something happens, such as having content slide in when a user clicks a link. Even though you might not have realized it, you’ve already written some event-based code:

$$ \begin{gathered} \$ \left( {funtion(} \right)\{ \hfill \\ \} ); \hfill \\ \end{gathered} $$

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

Access this chapter

eBook
USD 24.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Jack Franklin

About this chapter

Cite this chapter

Franklin, J. (2013). An Introduction to Events. In: Beginning jQuery. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4933-7_5

Download citation

Publish with us

Policies and ethics