JAB Creations
Fri 10th Jun '05, 4:21am
My cookie's name is "coffee" and it's value is "black".
I want to in as short as possible a way have JS say "black" by SPECIFICALLY referencing the "coffee" cookie.
I figure there is something like ...
document.write (document.cookie[coffee]);
but I'm still learning. I don't want to use g_e_t_c_o_o_k_i_e function or any of that crap. (don't type that as I subtract is from google searchs, others may follow my path eventually).
Anyway does anyone know how to do this? I've searched like an obsessed mad man all night and can't find this! :mad::confused:
I want to in as short as possible a way have JS say "black" by SPECIFICALLY referencing the "coffee" cookie.
I figure there is something like ...
document.write (document.cookie[coffee]);
but I'm still learning. I don't want to use g_e_t_c_o_o_k_i_e function or any of that crap. (don't type that as I subtract is from google searchs, others may follow my path eventually).
Anyway does anyone know how to do this? I've searched like an obsessed mad man all night and can't find this! :mad::confused: