Redirect a SharePoint site by using the Content Editor Web Part
In the Content Editor Webpart and in the Source Editor in any sharepoint page from where the redirect should happend, add the following script:(1)automatic redirect:
<script language="JavaScript">
alert("This site has been moved to another location, please update existing bookmarks. You will be redirected momentarily.");
window.location.href="http://serverTobeRedirectTo"
</script>
(2)with specific timeframe set:
<script language="JavaScript">
function getgoing()
{
top.location="http://serverTobeRedirectTo";
}
if (top.frames.length==0)
{
alert("This site has been moved to another location, please update existing bookmarks. You will be redirected in 10 Seconds.!");
setTimeout('getgoing()',10000);
}
</script>
Links Referred:
http://www.endusersharepoint.com/2010/01/20/redirect-a-sharepoint-site-by-using-the-content-editor-web-part/
http://www.dnzone.com/go?565
No comments:
Post a Comment