# Hyperlink to call method in Web Client

**URL:** <https://forum.servoy.com/t/hyperlink-to-call-method-in-web-client/19929>\
**Category:** Classic Servoy\
**Created:** [March 20, 2019, 10:25pm UTC](https://forum.servoy.com/t/hyperlink-to-call-method-in-web-client/19929 "2019-03-20T22:25:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SteveInLA](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@SteveInLA](https://forum.servoy.com/u/SteveInLA)\
**Post date:** [March 20, 2019, 10:25pm UTC](https://forum.servoy.com/t/hyperlink-to-call-method-in-web-client/19929/1 "2019-03-20T22:25:52Z")

</div>

In the Smart Client, one could include a hyperlink in an HTML area that could call a local or global method in the solution like:

```auto
<a href="javascript:myMethod()">Click here to launch Method</a>

```

This doesn’t work in the Web Client. Is there an equivalent? I have searched but have not found anything.

---

<div class="post-metadata">

**Author:** ![steve1376656734](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/steve1376656734/32/4613_2.png) [@steve1376656734](https://forum.servoy.com/u/steve1376656734)\
**Post date:** [March 21, 2019, 12:14am UTC](https://forum.servoy.com/t/hyperlink-to-call-method-in-web-client/19929/2 "2019-03-21T00:14:36Z")

</div>

This should work exactly the same in the web client (we used it in our previous solution before we moved to NGClient) but you must make sure you have flagged the field with the TRUST\_DATA\_AS\_HTML attribute. I will try to dig out the old solution tomorrow and paste some sample code for you.
