Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Now, notice that what we're doing when we're trying to grab the contents of the textbox, it's the .value property, not .innerHTML, but .value, and that's the same for pretty much every form field. So the value is your email, we'll blank it out. However, when they leave and we kick off the onblur event, it's going to ask, well, did they leave leaving that value as blank, and if so, what we're going to do is change it right back to your email. So, very easy to do.
Get unlimited access to all courses for just $25/month.Become a member