0

I have created a SharePoint web site and I used SharePoint Desginer 2007 to update the Master page file in order to make the web site not accessible using any web prowser except IE. The code works just fine for my user account, but the rest of the users can open the site with any browser.

<script language="javascript" type="text/javascript">

function detectBrowser()
{
  var browser=navigator.appName;
  var b_version=navigator.appVersion;
  var version=parseFloat(b_version);

  if ((browser=="Microsoft Internet Explorer") && (version>=4))
  {
    javascript:if (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();
  }
  else
  {
    window.location = 'http://sharepoint:1010/error.htm'
  }
}

setTimeout("location.reload();",100000);
</script>

</HEAD>
<BODY scroll="yes" onload="detectBrowser()">

1 Answer 1

0

I finally discovered the issue: I did not update the master page version on the MOSS.

Now it's working fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.