Home >Tips > SharePoint Online from Scratch > Content Editor with JavaScript kalmstrom.com site map icon Site map  

Add JavaScript to a Content Editor Web Part

A SharePoint Online tutorial by Peter Kalmström

SharePoint iconIn an earlier demo Peter Kalmström, CEO and Systems Designer of kalmstrom.com Business Solutions, showed how to use CSS in the HTML source of the Content Editor web part. You can add JavaScript to a page in the same way.

Just like with CSS, JavaScript cannot be added by editing the HTML source of the page directly. You have to use the Content Editor web part:
  1. Add a Content Editor web part to the page.
  2. (Click on the link to add new content, if you are using a web part page.)
  3. Click on the Edit Source button in the ribbon.
  4. Paste your JavaScript code in the HTML source.
  5. Apply and save the page.





back icon next icon


Products Buy FAQ Services Tips Books Contact About Us Tools

Security and integrity

Copyright  Kalmstrom Enterprises AB  All rights reserved