How do I embed JavaScript code into a Google Sites page?

前端 未结 5 1380
栀梦
栀梦 2021-02-08 04:26

I have a Google Sites page. How can I embed JavaScript code in it, without implementing a gadget and adding JavaScript code in that?

5条回答
  •  旧巷少年郎
    2021-02-08 04:55

    You can use the HTML Box gadget, here is where you find it in the menu:

    selecting HTML Box in the menu.

    It allows you to Insert custom HTML, CSS, and Javascript.

    Caveats:

    • your HTML is loaded in an