[javascript] I just cant do cookies..

by "Phil Babcock" <pbabcock(at)bgsgroup.com>

 Date:  Thu, 04 May 2000 12:41:30 -0400
 To:  "hwg-languages(at)hwg.org" <hwg-languages(at)hwg.org>
  todo: View Thread, Original
Ok

I am trying to set a cookie, using javascript and I just cant get it to
work.  I assume you can set cookies by viewing the page locally, as opposed
to over the internet?

Here is what I have;

<SCRIPT language="Javascript">

function SetCookie () {

document.cookie = "preload=true";
}
</script>

<body  onload="SetCookie();">

I just want a cookie with "preload=true" in it.


Of course after I get this working, I need to be able to test for the
existance of that cookie... argh another problem.

any help is good help!


Phil Babcock
Lead Web Designer
BGS Group Inc.

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.