Setting title attribute with javascript function

pinki104

New Member
Hi I am trying to find out if I can pass a value on the title attribute of a label using javascript.I have tried the following but it has not worked:\[code\]function myFunction(){return "Hello!";}<label title="myFunction()">TEST</label>\[/code\]~It just show the 'myFunction()' as a text.Is what I am trying possible with javascript? If yes what is the correct syntax?
 
Back
Top