Skip to content

Instantly share code, notes, and snippets.

@JohnBaek
Created July 28, 2016 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnBaek/a6cda663d59d8fe7e85c689ed54535ee to your computer and use it in GitHub Desktop.
Save JohnBaek/a6cda663d59d8fe7e85c689ed54535ee to your computer and use it in GitHub Desktop.
JS_PopupSetCookies
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