How to Use the Script Editor Web Part in SharePoint 2013

Looking to add HTML and/or JavaScript to your SharePoint site?  Don’t worry, Microsoft has got you covered!  With the Script Editor Web Part in SharePoint 2013, you can do just that.  In this article, we’ll show you how to install the Script Editor Web Part as well as introduce some of its key functionalities.

Adding the Script Editor Web Part to Your Site:

  • Log into SharePoint 2013 and click the Page tab from the Ribbon. From here, click on the Setting icon on the upper right and select Edit Page:

  • On the Edit page, select the Insert Web Part tab from the Ribbon. From the Categories menu, select Media and Content and then Script Editor from the Parts menu:

  • Click on the Add button at the bottom of the page to install the Web Part.

Embedding Code to Your Site:

  • Once the Web Part has been successfully installed on your page, you will see a hyperlink button under the Script Editor labeled EDIT SNIPPET. Click the EDIT SNIPPET link to insert HTML/Script code:

  • In this example, I will insert an image, button, and alert a string as pictured below:

  • After you have inputted the appropriate code in the Embed dialog box, click Insert to save the HTML/Script.
  • Click the Save button on the right corner of your site:

  • Once you have successfully completed the embed, you will see the results of your code displayed on your site, similar to the following:

 

Want to know more about out-of-the-box web parts available
for SharePoint 2013? Check out the complete series via the links below:

 


SharePoint Online

The cloud parts are functional components that extend your SharePoint Online environment in Microsoft 365.

Supports Classic and Modern sites for SharePoint Online/Microsoft 365

SharePoint

Top SharePoint Online Products

Experience greater power and savings by bundling our SharePoint apps and cloud parts.


Calendar Plus


Chart Plus


Knowledge Base


Project Management Central


Simple List Search

 

On-Premises Only

These web parts extend SharePoint beyond its out-of-the-box capabilities by tailoring it to your requirements with Bamboo Solution’s growing portfolio of SharePoint Web Parts.

SharePoint 2013, 2016, 2019 – Classic Pages Only

SharePoint

Top On-Premises Only Products

Experience greater power and savings by bundling our SharePoint apps and web parts.


Calendar Plus


Data Viewer


Password Change


Password Expiration


Password Reset

 

Featured Services

SharePoint Health Check

A SharePoint Health Check will identify the causes of issues and risks associated with your specific environment, and is custom tailored to provide you with the best recommendations to optimize your SharePoint environment.

SQL Health Check

Document recommendations relating to performance, stability, availability, or a specific focus you request of your SQL Server database instances.

My SharePointXperts

The truth is that each SharePoint skill may not be a full time job for many organizations, and it is nearly impossible for one person to do everything you need – so augment your team with SharePointXperts; providing the skill sets you need when you need them!