Syntax to call Hype function from within a HTML selector element

I have a HTML selector element in a Hype document from which I would like to trigger a Hype function. The error message from the console says that the Hype document isn’t recognized.

Here is the call code.

Any guidance on the correct syntax would be appreciated.

as always @MaxZieb


@h_classen thanks for this pointer. Thanks also to @MaxZieb.

I have included a working solution to this problem for anyone that has this issue in the future. (17.1 KB)