Warning: This feature is deprecated in favor of defining setters using the object initializer syntax or the Object.defineProperty()
API.
However, as it is widely implemented and used on the Web, it is very unlikely that browsers will stop implementing it.
The __defineSetter__
method binds an object's property to a function to be called when an attempt is made to set that property.