adequately good

decent programming advice

written by ben cherry



all articles filed under html5

Saner HTML5 History Management

Included in the laundry list of new features that are descending on the world of web development with HTML5 are two quite nice ones: History Management and the hashchange event. These two features allow for much richer and faster JavaScript applications. Let's start with a quick overview of what these provide.

Hashchange

This event is quite simple. Whenever the window.location.hash property changes, by following a ...

This Blog - Now With HTML5

Take a look at this web site. Notice anything out of the ordinary. Hopefully you don't, none of the layout or styling has changed noticeably recently. However, try a "View Source". Now do you see something different? This page is now rendered with the following doctype:

<!DOCTYPE html>

That's right, this web site is now HTML5! In fact it even validates as HTML5 successfully! If you ...