getElementProperty function

Query the value of an elements property.