Availability:built-in
get_attr(+Var, 
+Module, -Value)Request the current value for the attribute named Module. 
If
Var is not an attributed variable or the named attribute is 
not associated to Var this predicate fails silently. If Module 
is not an atom, a type error is raised.
Availability:built-in
[semidet]get_attr(+Elem, 
+Name, =Value)
[semidet]get_attribute(+Elem, 
+Name, =Value)Get an attribute (property) from a JavaScript object. Fails if the 
attribute is undefined.
Note that this predicate conflicts with SWI-Prolog get_attr/3 
to get attributes from a variable. For this reason we also make this 
predicate available as get_attribute/3.