how can i create a cookie in java script? i basically want a function that does the equivilant of this in php
PHP Code:
setcookie('clicked', "TRUE", time()+99999)
what i intend is to have a link, and when it is clicked, the javascript create a cookie
HTML Code:
<a href="http://www.google.com" onclick"CookieClick()">gooooogle</a>
or something like that
CookieClick() would then create the cookie