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

前端 未结 5 1366
栀梦
栀梦 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:57

    Refer to this article you need to create a Google Gadget file that you can access from a server to share the file and write the following code:

    
    
    
    
    ]]>
    
    
    

    Save the file as Name.xml and upload it to a file hosting service that has public access (not password protected). Then insert the link as following:

    Insert > .. More Gadget > Add gadget by URL

    Once you copy your url to the saved .xml Google Gadget code, you will have javascript embedded through your very own custom Google Gadget.

提交回复
热议问题