Ok, this is basic stuff but after reading about this function from several internert resources, none of them mentions that the command prompts the user if closing the window is OK.
I have this code, which should close the current window , and open another one based on the the day of the week. It works OK..but then again that prompt is not preferred.
<html>
<head>
<title>Date_Check</title>
<script>
function start(){
var today=new Date();
var NowDay = today.getDay();
if (NowDay == 5)
{
window.close("Date_Check");
window.open("Not_Today.asp");
}
}
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000" onLoad="start()">
I have this code, which should close the current window , and open another one based on the the day of the week. It works OK..but then again that prompt is not preferred.
<html>
<head>
<title>Date_Check</title>
<script>
function start(){
var today=new Date();
var NowDay = today.getDay();
if (NowDay == 5)
{
window.close("Date_Check");
window.open("Not_Today.asp");
}
}
</SCRIPT>
</head>
<body bgcolor="#FFFFFF" text="#000000" onLoad="start()">