[HTML] how to redirect to another page automactilly without js

let say we have a scene that after registered, we show a message to the web user, and then redirect the page to home page.

 

usually, we use js to set as following:

<script type="text/javascript">
setTimeout(
'redirectPage'3);

function redirectPage()
{
  window.location.href 
= ''http://www.example.com';
}
</script>

 

also, we can set it the <head> to achieve it.

<html>
<head>
    
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
<meta http-equiv="refresh" content="3;url=http://www.example.com">
    
<title>Redirect page</title>
</head>
    
<body>
    
</body>
</html>

 

 

 

 

 

posted @ 2011-09-14 20:58  DavidHHuan  阅读(422)  评论(0编辑  收藏  举报