Calling Kotlin js function from href

I can’t seem to figure it out. How could I call a function written in kotlin, whenever the user clicks on a href?

It should look like <your-module-name>.<path-to-package>.<your-fun>.
Let’s suppose we have a module Baz with the following code:

package foo.bar

fun test() {}

So, to call test from js we should write Baz.foo.bar.test()

Sorry for the late response (I needed to do something immidietly).
The suggested method works, thanks.