https://developer.mozilla.org/en-US/docs/JavaScript/Referenc...
button.onclick = obj.func.bind(obj);