# HTML hyperlink to a servoy method

**URL:** <https://forum.servoy.com/t/html-hyperlink-to-a-servoy-method/11551>\
**Category:** Classic Servoy\
**Created:** [December 30, 2009, 6:33pm UTC](https://forum.servoy.com/t/html-hyperlink-to-a-servoy-method/11551 "2009-12-30T18:33:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nromeou](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@nromeou](https://forum.servoy.com/u/nromeou)\
**Post date:** [December 30, 2009, 6:33pm UTC](https://forum.servoy.com/t/html-hyperlink-to-a-servoy-method/11551/1 "2009-12-30T18:33:43Z")

</div>

Hi,  
This is the situation, i have a HTML field in my login form that has an hyperlink wich i want to link to a method of that form. Is this possible? how can i do this?

Thanks

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [December 30, 2009, 6:43pm UTC](https://forum.servoy.com/t/html-hyperlink-to-a-servoy-method/11551/2 "2009-12-30T18:43:31Z")

</div>

Hi,

You can call methods via an href like so:

```auto
<a href="javascript:myLocalFormMethod()">Click me!</a>

```

Or when you want to use a global method you use the following syntax:

```auto
<a href="javascript:globals.myGlobalMethod()">Click me!</a>

```

---

<div class="post-metadata">

**Author:** ![nromeou](https://avatars.discourse-cdn.com/v4/letter/n/779978/32.png) [@nromeou](https://forum.servoy.com/u/nromeou)\
**Post date:** [December 30, 2009, 6:52pm UTC](https://forum.servoy.com/t/html-hyperlink-to-a-servoy-method/11551/3 "2009-12-30T18:52:00Z")

</div>

Thanks a lot for that quick reply robert!
