Hello,
I'm new to squarespace.
I'm trying to use the code block feature to run some very simple Javascript, but I'm not able to. The script is like this:
<script>
alert('hello');
</script>
This is supposed to display a popup with 'hello' in it. But it doesn't.
Reading the article on code blocks:
https://support.squarespace.com/hc/en-us/articles/206543167-Code-Blocks
...tells me that Javascript in code blocks is a premium feature only.
This *might* explain why it's not working for me, but I'm also wondering if I'm misunderstanding the point of code blocks. The article describes the point of code blocks as "rendering code". So I'm wondering if it is only meant to display code on the screen, NOT for running code. (This would explain why my Javascript is always displayed on the screen and I don't have the option to hide it).
Thanks.