Cookie & JS

denisb

Guest
Re: Cookie & JS

Автор оригинала: docjohn
Ещё вопрос: как в JS установить куку?
<SCRIPT>
// Create a cookie with the specified name and value.
// The cookie expires at the end of the 20th century.
function SetCookie(sName, sValue)
{
document.cookie = sName + "=" + escape(sValue) + ";
expires=Mon, 31 Dec 1999 23:59:59 UTC;";
}
</SCRIPT>
 
Сверху