Hi below code will work, i tried
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript" language="javascript">
function Redirect() {
window.location.href = "http://www.dotnetfunda.com";
}
</script>
</head>
<body onload="Redirect()">
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>