[Solved] How to include javascript with HTML in google sites? [closed]


  • Make sure when you hit page create that “webpage” was chosen in the dropdown.
  • When the box comes up to edit the page, make sure that you click the html icon in the edit box.
  • Copy the html you provided, and pasted it into the page and below it wrote script tags to contain the javascript you provided.

    <script>
    //your js code here
    </script>
    

Since Google restricts their sites, you have to use Google APIs to obtain the js code you need in order to make the Google Gadget work. Here’s the API site

This should give you what you need in order to get you Google Gadget working with JavaScript.

You can view the working google site I just created here, then click on “include html” link on left bar under “Home”.

5

solved How to include javascript with HTML in google sites? [closed]