I am confused about the Site section - is this like writing code in the header, or in the footer, or is this like writing server-side code? I thought the docs were saying this was server-side, but I think that it is in the header, right? And if you really want to write server-side js, does that mean you need to use a js file in the backend folder? Will any js file in the backend folder run on the server?
Hey Adam,
Site code is public code. It is run in the browser just like the regular page code. The difference is that it applies to all the pages in your site. So for example, if you have a button that is set to appear on all pages, it’s onClick event handler will be written in the Site tab.
You’re correct that server-side code is written in the Backend folder.