Modifying Links to call a script

Great! Well, the link works now, but

1: The script I’m using that I put on every page just before the close of the body tag: is not making the link open in a lightframe (additonal info: Advanced Lightframe API Usage | FareHarbor Help Center)

2: the link is opening in the same window of the website. Is there any easy fix for this?

Any additional help you can provide? Thanks so much for getting me this far!