function createElementWithClassName(type, className) {
  var elm = document.createElement(type);
  elm.className = className;
  return elm;
}
function createElementWithClassName(type, className) {
  var elm = document.createElement(type);
  elm.className = className;
  return elm;
}
function createElementWithClassName ( type , className ) { var elm = document . createElement ( type ) ; elm . className = className ; return elm ; }
Creates an element of a specified type with a specified class name.
@param {string} type The node type.
@param {string} className The class name to use.
@return {Element} The created element.
Creates an element of a specified type with a specified class name .
Creates an element with the given type and class name.