I have a Google Sites page. How can I embed JavaScript code in it, without implementing a gadget and adding JavaScript code in that?
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.