Thursday, July 8, 2010

Adding a button with javascript to sharepoint page

By putting a content editor web part with the following:


<BUTTON onclick="window.location.href='http://intranet/Legal/contracts/Search_URL.aspx?Project_Number='+document.location.href.substr(42,7)">Load\View Project Contracts</BUTTON>

No comments: