attaching a method to an html anchor

Hi,

Is there a way to attach a method to an anchor in an html field?

For example, the field might read:

hello

to run the method newRecord.

?

Thanks!
Andrew

Yep, you can do that and the way to do that is like with a normal web page where you include javascript methods:

<A href="javascript:methodName()">

You can also pass one or more parameters to your method:

<a href="javascript:methodName('param01, 4')">Link</a>

BE SURE to use SINGLE QUOTES around the parameters.