Secondo me non è così difficile
codice:function autoGrow (oEvent) { this.style[(oEvent || /* IE... */ window.event).keyCode === 13 || this.scrollHeight < this.clientHeight ? "removeProperty" : "setProperty"]("height", this.scrollHeight + "px"); } onload = function () { var oTA = document.getElementById("s_msg"); oTA.addEventListener ? oTA.addEventListener("keyup", autoGrow, false) : oTA.attachEvent ? oTA.attachEvent("onkeyup", autoGrow) : (oTA.onkeyup = autoGrow); autoGrow.call(oTA); }![]()


Rispondi quotando