to really fire a click event, you need to create a MouseEvent and call dispatchEvent. I agree that calling click is enough, but then the comment is wrong and should be "simulate a click event".