Forum Academy Marketplace Showcase Pricing Features

Running javascript just before </body> tag

Hi there!

I’m trying to run a code of javascript that needs to be placed right before the end of the body tag. The purpose of this tag is to redirect outbound links to an affiliate link. I tried putting the code in the HTML element but I’m not sure if that will trigger the javascript code or not. I also want the code to dynamically populate with a data field from the database, so the HTML editor seems to be what I want but I don’t think the code is running correctly. Is there a way to edit the body field and add this code just before the end of that tag?

Thanks!

This topic was automatically closed after 70 days. New replies are no longer allowed.