Problem Description:
How to add JavaScript file in SharePoint master page.
Resolution:
Follow below steps:
- Open your site in designer.
- Select Master pages option.
- Select V4.master, right click on it and select "Edit File in Advance Mode" option.
- In V4.master file search "<ShararePoint:Scriptlink" tag.
- As shown in below figure add your JavaScript file.
Product applies to:
- SharePoint Server 2010
- SharePoint Foundation 2010
- SharePoint Server 2013
Feel free to revert in-case of any query...