Javascript with expiring cookie

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mo

    #1

    Javascript with expiring cookie

    I am looking for a JavaScript that will allow me to open a pop-up
    window "onUnload". The pop-up window should set a cookie on the users
    computer that expires in 'n' number of days.
  • Randy Webb

    #2
    Re: Javascript with expiring cookie

    Mo wrote:
    [color=blue]
    > I am looking for a JavaScript that will allow me to open a pop-up
    > window "onUnload". The pop-up window should set a cookie on the users
    > computer that expires in 'n' number of days.[/color]

    So, after I leave your site, you want to *attempt* to annoy me by
    opening yet another ad window?

    And *if* I allow the cookie, do I get cyber-milk with it?

    Stop trying to annoy people after they have left your site. They are
    gone, let them go in peace.

    --
    Randy
    Chance Favors The Prepared Mind
    comp.lang.javas cript FAQ - http://jibbering.com/faq/

    Comment

    • Cardman

      #3
      Re: Javascript with expiring cookie

      On Sun, 01 Feb 2004 13:35:12 +0000, Randy Webb
      <hikksnotathome @aol.com> wrote:
      [color=blue]
      >Mo wrote:
      >[color=green]
      >> I am looking for a JavaScript that will allow me to open a pop-up
      >> window "onUnload". The pop-up window should set a cookie on the users
      >> computer that expires in 'n' number of days.[/color]
      >
      >So, after I leave your site, you want to *attempt* to annoy me by
      >opening yet another ad window?
      >
      >And *if* I allow the cookie, do I get cyber-milk with it?
      >
      >Stop trying to annoy people after they have left your site. They are
      >gone, let them go in peace.[/color]

      Well, there are valid uses for this function don't forget, even if
      better options could exist.

      Just what do you have against cookies by the way? When being able to
      recognize what one of your customers it is when they visit your site
      has always seemed like a good idea to me, when you can welcome them
      with like "Hello Randy, Welcome Back!".

      Cardman


      Comment

      • Tim Williams

        #4
        Re: Javascript with expiring cookie


        "Cardman" <do-not@spam-me.com> wrote in message
        news:omuq10hjq9 jfdtfppo6vd4bfg g7spal9q4@4ax.c om...[color=blue]
        > On Sun, 01 Feb 2004 13:35:12 +0000, Randy Webb
        > <hikksnotathome @aol.com> wrote:
        > <trim>
        > Just what do you have against cookies by the way? When being able to
        > recognize what one of your customers it is when they visit your site
        > has always seemed like a good idea to me, when you can welcome them
        > with like "Hello Randy, Welcome Back!".
        >
        > Cardman
        > http://www.cardman.com
        > http://www.cardman.co.uk[/color]

        I've always thought that was more creepy than anything else. Anyway,
        what has opening a new window got to do with setting a cookie? This
        can be done anytime from the main window.

        Tim.


        Comment

        • Michael Winter

          #5
          Re: Javascript with expiring cookie

          On Sun, 01 Feb 2004 22:23:22 +0000, Cardman <do-not@spam-me.com> wrote:
          [color=blue]
          > On Sun, 01 Feb 2004 13:35:12 +0000, Randy Webb
          > <hikksnotathome @aol.com> wrote:
          >[color=green]
          >> Mo wrote:
          >>[color=darkred]
          >>> I am looking for a JavaScript that will allow me to open a pop-up
          >>> window "onUnload". The pop-up window should set a cookie on the users
          >>> computer that expires in 'n' number of days.[/color]
          >>
          >> So, after I leave your site, you want to *attempt* to annoy me by
          >> opening yet another ad window?
          >>
          >> And *if* I allow the cookie, do I get cyber-milk with it?
          >>
          >> Stop trying to annoy people after they have left your site. They are
          >> gone, let them go in peace.[/color]
          >
          > Well, there are valid uses for this function don't forget, even if
          > better options could exist.[/color]

          [snip]

          The onunload intrinsic event is unreliable and should be avoided. Browsers
          consider different things "unload events". For example, I think IE fires
          onunload when a page changes, is refreshed, and when the window is closed.
          Opera only fires it when the page is changed. I haven't got around to
          installing Netscape and Mozilla, so I can't compare them.

          Mike

          --
          Michael Winter
          M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

          Comment

          • Cardman

            #6
            Re: Javascript with expiring cookie

            On Sun, 01 Feb 2004 23:26:25 GMT, "Tim Williams"
            <saxifraxREMOVE @THISpacbell.ne t> wrote:
            [color=blue]
            >"Cardman" <do-not@spam-me.com> wrote in message
            >news:omuq10hjq 9jfdtfppo6vd4bf gg7spal9q4@4ax. com...[color=green]
            >> Just what do you have against cookies by the way? When being able to
            >> recognize what one of your customers it is when they visit your site
            >> has always seemed like a good idea to me, when you can welcome them
            >> with like "Hello Randy, Welcome Back!".[/color]
            >
            >I've always thought that was more creepy than anything else.[/color]

            It can be I guess if you do not know how it works and thought that you
            were being spied upon. Like "quick, exit this web page, before it
            takes over the web cam and they get to see us naked!". ;-]
            [color=blue]
            >Anyway, what has opening a new window got to do with setting a
            >cookie? This can be done anytime from the main window.[/color]

            Beats me, but I cannot await the answer.

            Cardman


            Comment

            Working...