Skip to navigation

Question:
How to get the class name from a element with javascript?

Worse is better.