Posted By

yisreldov on 01/27/10


Tagged

javascript textmate prototype querystring cookies


Versions (?)

save query params to cookies in JS using prototype


 / Published in: Other
 

  1. query = document.location.search.toQueryParams();
  2. for(i in query ){
  3. setCookie(i,query[i],365);
  4. }
  5.  

Report this snippet  

You need to login to post a comment.