Answers for "set cookie on button click JavaScript"

PHP
0

set cookie on button click JavaScript

function SetCookie(c_name,value,expiredays)
	{
		var exdate=new Date()
		exdate.setDate(exdate.getDate()+expiredays)
		document.cookie=c_name+ "=" +escape(value)+
		((expiredays==null) ? "" : ";expires="+exdate.toGMTString())
	}
Posted by: Guest on May-02-2021

Code answers related to "set cookie on button click JavaScript"

Browse Popular Code Answers by Language