Created
July 28, 2016 05:10
-
-
Save JohnBaek/a6cda663d59d8fe7e85c689ed54535ee to your computer and use it in GitHub Desktop.
JS_PopupSetCookies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setCookiemain(name, value, expiredays) { | |
var todayDate = new Date(); | |
todayDate.setDate(todayDate.getDate() + 1); | |
document.cookie = name + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";"; | |
} | |
function toDays() { | |
if (confirm("오늘 하루 그만 보기를 적용 하시겠습니까?")) { | |
setCookiemain("wia_intro20141002", "ok"); | |
location.href = "/Home/Home.aspx"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment