title: Javascript: How to get only one element by class name?
body: <p>How do I get only one DOM element by class name? I am guessing that the syntax of getting elements by class name is <code>getElementsByClassName</code>, but I am not sure how many elements it's going to return.</p>