A
avanti
HI,
I have a HyperLink in my code. It has a OnClick function defined. I am
trying to access the text property of the HyperLink in my JavaScript
function.
<CoreCtrl:Controls.WebControls.HyperLink id="securityCodeLink" text="My
Text" OnClick="ShowText(this);" Href="#" CssClass="textSmall"
runat="server" />
function ShowText(obj)
{
alert(obj.text);
}
I also tried getting a var for the hyperlink with its id and showing
its text. It says 'undefined' instead of 'My Text'. Am I doing
something wrong?
Thanks,
Avanti
I have a HyperLink in my code. It has a OnClick function defined. I am
trying to access the text property of the HyperLink in my JavaScript
function.
<CoreCtrl:Controls.WebControls.HyperLink id="securityCodeLink" text="My
Text" OnClick="ShowText(this);" Href="#" CssClass="textSmall"
runat="server" />
function ShowText(obj)
{
alert(obj.text);
}
I also tried getting a var for the hyperlink with its id and showing
its text. It says 'undefined' instead of 'My Text'. Am I doing
something wrong?
Thanks,
Avanti