View Single Post
  #1 (permalink)  
Old 10-09-2006, 03:36 AM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,569
Last Blog:
Tidy up your HTML
Credits: 0
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default Creating Cookies

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
Reply With Quote

Sponsored Links