Exit Consoles

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chass
    Confirmed User
    • Jan 2001
    • 498

    #1

    Exit Consoles

    Just a simple question...one in which I'm still learning and that's html, java, etc...Can you please give me an example of an exit script? I would like to put a small ad on just one of my site...Thanks for your assistance...
  • mnesbitt
    Banned
    • May 2001
    • 4

    #2
    .<SCRIPT language="Javascript">
    < !-- BEGIN EXIT CODE
    var console=true;
    function exit()
    {
    if (console)
    open("YOUR URL HERE");
    }
    // END EXIT CODE -->
    </SCRIPT>

    .<body onunload="exit()">


    IM not to good at it myself
    but that seems to work on my computer
    my server wont let them work so I can't do much testing

    Comment

    • mnesbitt
      Banned
      • May 2001
      • 4

      #3
      grrrrrrrrrrrrrrrr
      it didn't show
      I trhought if I put an ...... in front it would
      well maby this will work

      SCRIPT language="Javascript">
      < !-- BEGIN EXIT CODE
      var console=true;
      function exit()
      {
      if (console)
      open("YOUR URL HERE");
      }
      // END EXIT CODE -->
      </SCRIPT
      <body onunload="exit()"

      Comment

      • mnesbitt
        Banned
        • May 2001
        • 4

        #4
        and this
        <p align="center"><font color="#FF0000">&lt;body onunload="exit()"></font></p>

        Comment

        • chass
          Confirmed User
          • Jan 2001
          • 498

          #5
          mnesbitt

          Thanks for the info....I'll try it...


          --------------------
          Submit your galleries--No Recip

          Comment

          • Lord Assmore
            Confirmed User
            • Mar 2001
            • 588

            #6
            If you're gonna use mnesbitt's code, remember to add onclick="console=false" to those links (inside the A tags) that aren't meant to set off the exit console when clicked.

            Comment

            Working...