var obj = { name: "obj", f: function () { return this + ":" + this.name; } }; document.write(obj.f());