Daily Archives: September 5th, 2007

Too many cooks spoil the DOM (getting content out of page elements)

I frequently find myself wanting to refer to the contents of an element on a web page, having got hold of that element in the DOM. However, I equally frequently forget how to access this content. The confusion arises because there are various ways to get hold of the content of an element: nodeValue, value, [...]

Follow

Get every new post delivered to your Inbox.