your question is not clarifying to me! but suppose you have also button to change the text, you can change it according to requirment
<asp:TextBox ID="testText" runat="server" ClientIDMode="Static">hi this is a world!</asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button"></asp:Button>
Add an event of javascritp on your Page_Load (i am adding onclick event to button for handling javascript function)
Button1.Attributes.Add("onclick", "javascript:clientsite()");
then i think you want change server site value from client site, so for this you have to replace the value
function clientsite() {
var servervalue = document.getElementById("testText").value;
var replaceIt = servervalue.replace(servervalue, "hahaha");
document.getElementById("testText").value = replaceIt;
}
Now when you click on button it will replace or change a value from server side to client side
may be this can be helpful to you
happy coding :D