Using JavaScript on your Office 365 Public Site

Ben SteginkUncategorizedLeave a Comment

A couple months back I was working on an Office 365 public facing site and needed to add some JavaScript to the site.  In this case I was just trying to add Kontactr to a page.  I know, once of the gadgets with Office 365 is  Contact Us, however it is missing the CAPTCHA, something I really enjoy having to reduce the amount of spam.

My first approach was the typical SharePoint approach, just stick a content editor web part on the page and paste the HTML in.  With Office 365 it was place the HTML gadget on the page and paste in the JavaScript.  Unfortunately it didn’t work.

So, how do you do it?  I found this post explaining it –  When adding references you need to wrap them in a form tag like:

Hope it helps!