0

I have SharePoint Online hosted by Microsoft, individual edition. I noticed that when adding links with a hash (#) to a page, these links would not be saved. I thought it was a bug and decided to include some Javascript, either in a "a href" or in an input button. Surprise! The save command deletes ALL my javascript code (in the body, I can keep it in a different web part)

Am I doing something wrong or is Microsoft artificially limiting me because I bought the least expensive hosting option? I feel shortchanged! I cannot do very basic things!

3
  • Use the Content Editor Webpart or the Script Link webpart to add the javascript snippet to the page. Commented Feb 3, 2014 at 13:34
  • Also, make sure the page that you are editing is checked out first. Commented Feb 3, 2014 at 14:55
  • Thanks for the answers, but I am using Script Editor and all other changes are saved. It's only the Javascript and the URL links (when they contain a hash) which get edited. Commented Feb 3, 2014 at 16:23

1 Answer 1

1

I finally figured out the problem. I was reusing a page that I did not create, it was created by the Sys Admin. Once I started using pages I did create everything worked fine and SP stopped stripping my code. Still, it would be nice to have a warning message or something...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.