O'Reilly logo

Web Programming with Dart by Patricia Juberias, Moises Belchin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 25

image

Integrating Dart and HTML5

In this chapter we’ll cover what the Document Object Model (DOM) is and how you can manage it from Dart using the dart:html library. We’ll see how HTML documents are structured in dart:html and how to retrieve elements with the querySelector and querySelectorAll methods. Later, we’ll look at DOM events and how to create event handlers that are attached to DOM elements.

Throughout this book we have seen some similarities to and differences from JavaScript. Dart’s goal is to solve some problems inherent in current web development, and therefore it allows us to develop in a more uniform and structured way and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required