Are Javascript links possible on pins?

I’d like to be able to send javascript commands to a parent website containing the MapHub iFrame, so that when a pin link is clicked the site responds with the relevant section, without exiting the current session. If that is possible it would be stellar!