Here is a new example file to see it applied. It contains examples to use it on links or with inline script tags in rectangles: Example_using_getHypeDocument.hype.zip (71,5 KB)
Hype Action Events, has more meat to its code base, but will solve most case where this would be needed as well.