我需要祝我的朋友生日,所以我计划告诉我的朋友打开一个网页@ 11.55,当时间变成12.00时,我需要自动重定向我的朋友的页面到我的问候页面,并帮助我做任务
使用javascript进入好友的页面
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script type="text/javascript">
function greetings(){
var now =new Date();
if (now.getHours()===0 && now.getMinutes()===0) window.location.href='http://google.com';
}
setInterval(greetings,10000);
</script>
</head>
<body>
</body>
</html>