question about window.close()

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

    question about window.close()

    Hi, all

    When using window.close(), is that possible to close it straightaway without
    a "confirm prompt" to user?

    Jack


  • Randy Webb

    #2
    Re: question about window.close()

    datactrl wrote:
    [color=blue]
    > Hi, all
    >
    > When using window.close(), is that possible to close it straightaway without
    > a "confirm prompt" to user?[/color]

    Only if you opened the window with script[1]. If the window is not
    opened with script, it's a security violation to close it (thats why the
    dialog is there).

    [1] I won't go any further :)

    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq

    Comment

    • Andrew Thompson

      #3
      Re: question about window.close()

      On Sun, 19 Sep 2004 22:41:39 -0400, Randy Webb wrote:
      [color=blue]
      > [1] I won't go any further :)[/color]

      Place your hand on the FAQ and repeat after me.
      "I swear to tell the truth, the whole
      truth, and the ultimate tru.."

      Bursting into court..
      "Your honour, we have a supreme court suppression
      order on the illegal search and browser seizure of the
      OS component in question, upon which we make application
      for the exclusion of the testimony of *this* witness!" ;-)

      --
      Andrew Thompson
      http://www.PhySci.org/codes/ Web & IT Help
      http://www.PhySci.org/ Open-source software suite
      http://www.1point1C.org/ Science & Technology
      http://www.lensescapes.com/ Images that escape the mundane

      Comment

      • Randy Webb

        #4
        Re: question about window.close()

        Andrew Thompson wrote:
        [color=blue]
        > On Sun, 19 Sep 2004 22:41:39 -0400, Randy Webb wrote:
        >
        >[color=green]
        >>[1] I won't go any further :)[/color]
        >
        >
        > Place your hand on the FAQ and repeat after me.
        > "I swear to tell the truth, the whole
        > truth, and the ultimate tru.."
        >
        > Bursting into court..
        > "Your honour, we have a supreme court suppression
        > order on the illegal search and browser seizure of the
        > OS component in question, upon which we make application
        > for the exclusion of the testimony of *this* witness!" ;-)
        >[/color]

        <shaking head in laughter>

        One thing thats been missing from this group for a long time has been a
        little laughter. Thanks for giving that to me :)

        P.S. Instead of the ultimate truth, the Unconditional Truth will lead
        you to where you want to go :)

        --
        Randy
        comp.lang.javas cript FAQ - http://jibbering.com/faq

        Comment

        • Andrew Thompson

          #5
          Re: question about window.close()

          On Sun, 19 Sep 2004 23:52:51 -0400, Randy Webb wrote:[color=blue]
          > Andrew Thompson wrote:[color=green]
          >> On Sun, 19 Sep 2004 22:41:39 -0400, Randy Webb wrote:
          >>[color=darkred]
          >>>[1] I won't go any further :)[/color][/color][/color]
          ...[color=blue][color=green]
          >> "I swear to tell the truth, the whole
          >> truth, and the ult.."[/color][/color]
          ...[color=blue]
          > P.S. Instead ..., the Unc..[/color]

          D'Oh! I actually checked the other string and
          stumbled across a post that seemed to fit. But
          I was sure should be more ..locations for it.

          Oh well. Never let the (unconditional or any other)
          truth get in the way of a good story. ;)

          Comment

          • RobG

            #6
            Re: question about window.close()

            Randy Webb wrote:

            [color=blue]
            > P.S. Instead of the ultimate truth, the Unconditional Truth will lead
            > you to where you want to go :)
            >[/color]

            Of course, if you were to hear the ultimate truth, the
            orator must be ... God?

            Comment

            Working...