Wednesday, July 3, 2013

Adding an Email Link in SharePoint site page

There was a requirement raised by one of my user to add Email lnk to the SharePoint site page, I followed below steps to achieve this

Add Content Editor Web Part on the page and in source editor insert following code
<a href="">Email Us</a>
open a site page in SharePoint Designer, select the location where you have to put the link and then insert above code
if you want users to directly open email link on a page when they click on "Email Us / Contact Us" button then assign "OnClick" event to Contact Us button / tab with above code 
<INPUT TYPE="button" VALUE="Email Us" onClick="parent.location=''">

hope this helps

No comments: