How can I use JavaScript on the page ?
I use the html block but that doesn’t seem to let the JavaScript to work?
Can someone tell me how I can use simple js on page ?
How can I use JavaScript on the page ?
I use the html block but that doesn’t seem to let the JavaScript to work?
Can someone tell me how I can use simple js on page ?
Just put your javascript inside of<script></script>
tags and it will work inside of the HTML block. Also, if you need to inject any libraries (src=___), you should put that inside of the page’s header (also inside <script></script>
tags), and then put the rest of your JS into an html block (best practice is after your html code, if any)
This topic was automatically closed after 70 days. New replies are no longer allowed.