Javascript String asElementArray()

Description

Javascript String asElementArray()

String.prototype.asElementArray = function() {
  var foo = document.createElement('div');
  foo.innerHTML = this;// www .ja v a  2s.  c  om
  return foo.childNodes;
}



PreviousNext

Related