I am working with a variable containing a webpage element such as a button. However, sometimes I get the error "Can't access to a dead object" because the page containing the element has changed since the moment I saved it.
I would like to know a way to check if an element is dead or not, I tried :
if(element)
alert("Do something");
but it doesn't work as expected.