// do innerhtml work yourself $.fn.html = function (value) { if (!value) { return this.innerHTML; } if (this.tagName.toUpperCase() == 'TITLE') { document.title = value; } else { this.innerHTML = value; } } // rename original function $.fn.html_original = $.fn.html; $.fn.html = function (value) { if (this.tagName.toUpperCase() == 'TITLE') { document.title = value; } else { this.html_original(value); } }