How to update your SharePoint pages via the embedding of JavaScript

Download this episode

Download Video

Description

This video shows how to you can use JavaScript embedding to update SharePoint pages.

The video shows following topics:

  • How to hookup your JavaScript so that it gets executed on all pages in a site
  • How to use JavaScript to add elements to a page
  • How to use JavaScript to hide elements on a page

The sample code used in this video is available on PnP: https://github.com/OfficeDev/PnP/tree/master/Samples/Core.EmbedJavaScript

If you have any feedback or comments related on this video, please use the Office 365 Developer Patterns and Practices Yammer group to start discussion with the PnP community

Embed

Format

Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • User profile image
      getalex

      Thanks for posting this video. This appears to be the same source code behind the demo previously published as "JavaScript injection in SharePoint Online" -- would you say this mechanism is the recommended approach to branding a site as the other video suggested?

      My concern is abandoning the design manager feature among other historical master page customization approaches. This approach of embedding/injecting JavaScript for branding SharePoint sites online seems hugely impractical with notable drawbacks not mentioned here.

      It would be nice to have definitive and formal product team guidance to branding SPO.

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.