From reading here and elsewhere I would expect the following to remove the first div from the page.
<div class = "name">one</div>
<div class = "name">two</div>
<div class = "name">three</div>
<div class = "name">four</div>
<div class = "name">five</div>
<div class = "name">six</div>
var removeName = function(x,y) {
x.remove(y);
};
removeName(document.getElementsByClassName("name"),0);
I'm not sure what I have missed? Any help appreciated.