On my SharePoint Online site, I have a list which has 3 different calendar views. I'm trying to add a set of 3 buttons to the top of the page inside a Script Editor web part, each linking to one of the 3 views.

Currently I am trying to link to the page using an href to the url, but the page is reloading instead of directing to the new view. Is there something I need to enable to redirect these?

  • can you please add snippet for the same ? Jul 17, 2018 at 5:23

1 Answer 1


The issue appears to be actually trying to use a <button> in the html breaks the hrefs. Using only an <a> and making it look like a button corrects the issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.