반응형
쿠키를 이용한 대부분의 사용예
<script language="javascript">
<!--
function setCookie(name,value,expiredays) {
var todayDate = new Date();
todayDate.setDate(todayDate.getDate() + expiredays);
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function closeWin() {
self.close();
}
function closeDay() {
setCookie("SRH", "done" ,1);
self.close();
}
//-->
</script>
반응형