26 April 2010

Upload/host Javascript Or .js files to Google Sites?


We already know how to Upload/host all Javascript or .js files on Blogger with unlimited bandwidth.

But we can not upload all the scripts in that way directly on blogger. Like in case of  Numbered Page Navigation for blogger script.

Then you can upload such scripts on Google Sites. Using it you can upload and share your scripts.

So let's start.

First login to G mail account. Then go to the link http://sites.google.com/?pli=1

Enter password of G Mail and sign in. Click on Create Site.
Choose Blank Template. Give a name to your site and hit create site.

Then click on Create Page > File Cabinet. Give a name and create page. You will be directed to following type of page.


To upload script click on ADD FILE. Select your file and upload it. After the file is uploaded it will be present in the files list. Below each file you will see Download link.

Like that-


But you can't use this link directly as it will give error. To use it correctly just remove the Question mark (?) and all the text after that question mark. Then the correct link will be


You can now use this script in your template. Do the same with all other scripts.

Related Posts


November 22, 2010 at 2:56 AM

This works in Chrome, but I get an error on IE8:

Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: http://sites.google.com/site/abc/bloggerfiles/sample.js

January 11, 2011 at 12:33 AM

Use Firefox/Chrome

Post a Comment


Twitter Delicious Facebook Digg Stumbleupon Favorites More