Jump to content
xisto Community
nancmu

How To Set Cookie With Javascript? please...

Recommended Posts

The same as topic... I try to learn cookie setting from many scripts but i still don't got it :) . anyone help me, please :) .
for example this code... :rolleyes:

function get_cookie(Name) {[br]//Get cookie routine by Shelley Powers [/br]  var search = Name + "="[br]  var returnvalue = "";[/br]  if (document.cookie.length > 0) {[br]    offset = document.cookie.indexOf(search)[/br]    if (offset != -1) { [br]      offset += search.length[/br]      end = document.cookie.indexOf(";", offset);[br]      if (end == -1) end = document.cookie.length;[/br]      returnvalue=unescape(document.cookie.substring(offset, end))[br]      }[/br]   }[br]  return returnvalue;[/br]}
:D:DB)B)

Share this post


Link to post
Share on other sites

Thank a lot, vizskywalker

 

htmlgoodies.com :) the new and excellent site for me.. i think i must stay in this site for a long time. I can learn basic for javascript, css, vbscript and more....

Did you know? i try to search sites that i can learn about this for a week but i'v just find. Thank you again :rolleyes: .

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.