Hi Timo,
By 'start some functionality', I assume you mean you want to execute some Javascript? You can do so by adding the onclick paramater to a button or anchor tag.
This article should help. Assuming you are a course author use the 'on HTML' section.
For example you could have something like.
<aonclick="Window.close()">Exit course</a>
to exit a course.