Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Calling the JavaScript file to sharepoint

  Asked By: Daniel    Date: Jun 12    Category: Sharepoint    Views: 1504

I have a one .js or .css file h'w can i call these files in to sharepoint site..?

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Jagjit Phutane     Answered On: Jun 12

Multiple way to do it, depends on whether you want to do it on every page or on a specific Page.

1. If on every page then put the links on your Master Page (for .Js and .CSS)
2. If for specific pages (based on a Page Layout) then insert it into the Page Layout.
3. If you want to put it on a web part page (just one) then put the .Js and .CSS contents inside a content editor web part.

 
Answer #2    Answered By: Janak Jadeja     Answered On: Jun 12

u can use Content query webpart to call  , css  or js, put the file  in the folder and give the link in ur code, it will work smooth

 
Didn't find what you were looking for? Find more on Calling the JavaScript file to sharepoint Or get search suggestion and latest updates.




Tagged: