SharePoint 2013 – Where to add Javascript\Jquery in your SharePoint site

Summary : SharePoint 2013 – Where to add Javascript\Jquery in your SharePoint site,How to add Jquery and JavaScript in SharePoint 2013 site

The new webpart “Script Editor” lets you add Javascript\Jquery in your SharePoint site. You can insert HTML snippets or scripts.



Quick Steps –
1. Create a webpart page (If you cannot find the Webpart page template take a look at my post @ SharePoint 2013 – How to create a WebPart Page?)


2. Click on Webpart zone “Add a WebPart” and then in Ribbon select “Script Editor”.

3. Once the webPart is added click the “Edit Snippet” and add JavaScript in it. For this example I added JavaScript that would display current date.







This is a special webpart added to insert HTML\JavaScript\Jquery. You can still add scripts in content query webpart as you did earlier.


Trackbacks

  1. […] 2013 site Page. There are various ways of adding a video in SharePoint 2013. You can either use a Script editor webpart or the old Content editor to add the video code or upload videos to asserts library that […]

  2. […] 2013 site Page. There are various ways of adding a video in SharePoint 2013. You can either use a Script editor webpart or the old Content editor to add the video code or upload videos to asserts library that […]

  3. […] each component I have added a picture and a JavaScript that can be added to the Script Editor to hide it on a […]

  4. […] in the PageHead or Main content area of the aspx file of your Application page You can also use Script Editor WebPart to directly add it to any existing SharePoint […]

Speak Your Mind

*