Is it possible to put Javascript code just before the </body>

I’m getting an error trying to verify something on my website for a 3rd party. They are telling me that their code should be inserted at the very end of my pages, just before the /body> tag.

They would like me to add it at the end of the page is this possible>?

I do not believe it is possible to place code in a specific location in the DOM (just above the html body tag) since Bubble builds the pages dynamically and does not expose the DOM per se. But… if you are trying to insert some JS code and ensure the DOM is fully loaded you can simply use the following jQuery code and put it anywhere. The code will not fire the “internal code” until the DOM is fully loaded.

//internal code here

If I am wrong… always like to learn.

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