close.windows()

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

    close.windows()

    Can i close a windows without the question that do i want to close it?

    Pali


  • Tim Van Wassenhove

    #2
    Re: close.windows()

    On 2003-11-22, Pal Csepregi <palr@chello.hu > wrote:[color=blue]
    > Can i close a windows without the question that do i want to close it?[/color]

    You can close your windows, but not mine. Certainly not without asking
    me. And let's keep it that way :)

    --
    verum ipsum factum

    Comment

    • Pal Csepregi

      #3
      Re: close.windows()

      Ok but i want to close my windows after i opened another. is there any
      chance to close it whitout that stupid wquestuion?

      Pal

      "Tim Van Wassenhove" <euki@pi.be> wrote in message
      news:bpoc6f$1rt vrs$1@ID-188825.news.uni-berlin.de...[color=blue]
      > On 2003-11-22, Pal Csepregi <palr@chello.hu > wrote:[color=green]
      > > Can i close a windows without the question that do i want to close it?[/color]
      >
      > You can close your windows, but not mine. Certainly not without asking
      > me. And let's keep it that way :)
      >
      > --
      > verum ipsum factum[/color]


      Comment

      • Lasse Reichstein Nielsen

        #4
        Re: close.windows()

        "Pal Csepregi" <palr@chello.hu > writes:

        Please don't top post.
        [color=blue]
        > Ok but i want to close my windows after i opened another. is there any
        > chance to close it whitout that stupid wquestuion?[/color]

        It's not your window unless you opened it. Closing the main window of
        the browser also loses its history. That is why you are not allowed
        to close it, even though it is currently showing your page.

        /L
        --
        Lasse Reichstein Nielsen - lrn@hotpop.com
        DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
        'Faith without judgement merely degrades the spirit divine.'

        Comment

        • Michael Winter

          #5
          Re: close.windows()

          Pal Csepregi wrote on 22 Nov 2003:
          [color=blue]
          > Ok but i want to close my windows after i opened another. is
          > there any chance to close it whitout that stupid wquestuion?[/color]

          No, you can't. If the user asks, through settings in their browser,
          to be warned if a script tries to close a window you, as an author,
          have no right to over-ride that decision.

          I think what Mr Wassenhove* tried to say was a lot of users do not
          wish to be 'violated' in that way, and nothing should be done to
          change current browser behaviour.

          You'll just have to live with the warning.

          Mike


          * Apologies if I'm putting words in your mouth.

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

          Comment

          • Michael Winter

            #6
            Re: close.windows()

            Michael Winter wrote on 22 Nov 2003:
            [color=blue]
            > No, you can't. If the user asks, through settings in their
            > browser, to be warned if a script tries to close a window you,
            > as an author, have no right to over-ride that decision.[/color]

            Correction: it has nothing to do with browser preferences (though
            some might use them). It is part of the behaviour of the
            window.close() method.

            Mike

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

            Comment

            • find clausen

              #7
              Re: close.windows()

              On Sat, 22 Nov 2003 19:45:12 GMT, Michael Winter
              <M.Winter@bluey onder.co.uk.inv alid> wrote:
              [color=blue]
              > window.close() method.[/color]

              If it's not a window it cannot be closed :-)

              --

              find clausen

              Comment

              • find clausen

                #8
                Re: close.windows()

                On Sat, 22 Nov 2003 19:03:11 GMT, "Pal Csepregi" <palr@chello.hu >
                wrote:
                [color=blue]
                > Can i close a windows without the question that do i want to close it?[/color]

                If you see the question it's NOT a window,
                it's the browser itself. (maybe you came in from a search engine)

                Then it's a page that was intended to be opened as a window
                with window.open or _blank etc.

                --

                find clausen

                Comment

                • DU

                  #9
                  Re: close.windows()

                  Michael Winter wrote:
                  [color=blue]
                  > Michael Winter wrote on 22 Nov 2003:
                  >
                  >[color=green]
                  >>No, you can't. If the user asks, through settings in their
                  >>browser, to be warned if a script tries to close a window you,
                  >>as an author, have no right to over-ride that decision.[/color]
                  >
                  >
                  > Correction: it has nothing to do with browser preferences (though
                  > some might use them). It is part of the behaviour of the
                  > window.close() method.
                  >
                  > Mike
                  >[/color]

                  Even that is starting to change too. I reported a bug on this issue for
                  Opera 7. Scripts might not have the rights to close windows, even those
                  created by javascript. It's generally perceived as rude, excessive
                  powers over the browser. Idem est: the user wants to position or resize
                  an enlarged image in a requested popup but a script detects a mouse
                  clicks and then closes the window: quite stupid IMO.

                  Mozilla will have (or already has) an user pref by which you can disable
                  windowRef.close () calls.

                  Firebird 1.0 will have it as an UI pref:
                  + <checkbox id="allowCloseW indow"
                  label="&allowCl oseWindow.label ;"
                  prefstring="dom .allow_scripts_ to_close_window s"/>

                  user_pref("dom. allow_scripts_t o_close_windows ", false);

                  DU

                  Comment

                  Working...