annoying javascript prob. with cookies...
by "Phil Babcock" <pbabcock(at)bgsgroup.com>
|
| Date: |
Thu, 04 May 2000 10:47:21 -0400 |
| To: |
"hwg-languages(at)hwg.org" <hwg-languages(at)hwg.org> |
| |
todo: View
Thread,
Original
|
|
Hi all
I am trying to write a javascript function to set a cookie and to later
check if the cookie exists.
What I have so far:
<SCRIPT>
<!--cloak engaged
function SetCookie (name, thevalue) {
document.cookie = name + ' = ' + thevalue + ';
}
function prompt(){
message = "message here";
prompt = confirm(message);
if (prompt) {
parent.Setcookie('preload', 'true');
}
}
</script>
When I run this I get dialog box that says "undefined" and has a user input
that also says "undefined". I am not sure what is causing this... any
clues?
tia
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.