When triggered by click event add graphobejct to a link

Is it possible to add an graphobject to a link when it is clicked on? if so is there and example?

This appears to be a duplicate of Shapes and Links