Redirect Sharepoint site

Posted: August 16, 2011 in Content Editor webpart, sharepoint 2007
Tags: , ,

Script For Redirecting The Sharepoint Site Using Content Editor Webpart.

 

<HTML>
<HEAD>
<SCRIPT language=”JavaScript”>
<!–
function redirectsp()
{
top.location=”http://YOURSITE HERE”;
}
if (top.frames.length==0)
{
setTimeout(‘redirectsp()’,5000);
}
//–>
</SCRIPT>
</HEAD>
<body>
<TABLE width=70% align=center cellpadding=10><TBODY bgcolor=#EOEBED><TR><TD><STRONG><FONT size=4 color=#59452A><BR>You will be redirected here: <FONT face=Verdana><A href=”http://servername/sites/Test/default.aspx”>http://servername/sites/Test/default.aspx</A> Please bookmark it for future reference. You will be redirected in 5 seconds or you may click on the link to go there immediately.<BR><BR></FONT></FONT></STRONG></TD></TR></TBODY></TABLE>
</body>
</html>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s