SharePoint Custom JS file Best Practice

Posted by bmw0128 on Stack Overflow See other posts from Stack Overflow or by bmw0128
Published on 2010-03-18T17:59:21Z Indexed on 2010/03/18 18:01 UTC
Read the original article Hit count: 333

Filed under:

I made a custom master page. I also made a custom CSS file, which I uploaded to "Style Library". I link to this CSS file by:

<SharePoint:CssRegistration name="<% $SPUrl:~SiteCollection/Style Library/coe/mainCOE.css%>" runat="server"/>

Now I want to make a custom JS file, and link to it in the custom master page. 1. Where should I upload the JS file, make a folder like the "Style Library"? 2. Is there a SharePoint way to link to the JS file, like the one above for a CSS file?

© Stack Overflow or respective owner

Related posts about sharepoint2007