Join Joseph Lowery for an in-depth discussion in this video Entering custom text, part of Creating Photo Card Titles with HTML5.
So I'm going to scroll down to the bottom of my canvas_custom.js file. Under line 188,…I'm going to enter in the first of my addEventListener blocks.…So first we'll set up a variable called formElement and set that equal to…document.getElementById, and the ID we're looking for here is textBox.…
Now once we have that, we can add the event listener to it.…So formElement.addEventListener, and you'll recall this takes three arguments, and…
Check out the rest of the HTML5 Projects series.
- Setting up a caption submission form
- Creating basic text entry fields
- Integrating color pickers in the form
- Applying text effects like shadows and gradients