I'm developing in ASP.NET with C#.

I have an "hyperlink". I want to change the text attribute when a javascript function is called.


Here's what I have in the code:
<a id="ExpColLink" href="javascript:fun('ExpColLink');" style="font-family:Arial;font-size:X-Small;">Expand/Collapse All</a>


function fun(obj)
{
var ECLink = obj;
ECLink.Text = 'Different Text';
}