Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. exit button

exit button

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
25 Posts 8 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z zaimah

    that would be good. but how did they do it?

    S Offline
    S Offline
    Sonia Gupta
    wrote on last edited by
    #16

    i am also looking the same.:)

    Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

    Z N 2 Replies Last reply
    0
    • S Sonia Gupta

      u might have heard about the monster.com website , there , the moment u update ur resume , there u can close the window by the button click , and without noticing the user !!!!!!

      Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

      modified on Wednesday, March 5, 2008 2:35 AM

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #17

      If your script had opened a window, you have the rights to close it through window.close() without requesting permissions from the user. Otherwise, the web browser is obliged to get a nod from the user whether to accede to your request.

      Vasudevan Deepak Kumar Personal Homepage
      Tech Gossips
      A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

      S 1 Reply Last reply
      0
      • V Vasudevan Deepak Kumar

        If your script had opened a window, you have the rights to close it through window.close() without requesting permissions from the user. Otherwise, the web browser is obliged to get a nod from the user whether to accede to your request.

        Vasudevan Deepak Kumar Personal Homepage
        Tech Gossips
        A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson

        S Offline
        S Offline
        Sonia Gupta
        wrote on last edited by
        #18

        can u elaborate this process of closing the window without user permissions?

        Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

        _ 1 Reply Last reply
        0
        • S Sonia Gupta

          i am also looking the same.:)

          Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

          Z Offline
          Z Offline
          zaimah
          wrote on last edited by
          #19

          if u do find the answer pls tell me.. :) it's much easier without the msg..

          1 Reply Last reply
          0
          • S Sonia Gupta

            can u elaborate this process of closing the window without user permissions?

            Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

            _ Offline
            _ Offline
            _AK_
            wrote on last edited by
            #20

            What he is trying to tell is if the window has been opened through Javascript then you will not be asked for the permission otherwise confirmation box will appear.

            Apurva Kaushal

            S 1 Reply Last reply
            0
            • _ _AK_

              What he is trying to tell is if the window has been opened through Javascript then you will not be asked for the permission otherwise confirmation box will appear.

              Apurva Kaushal

              S Offline
              S Offline
              Sonia Gupta
              wrote on last edited by
              #21

              window is opening through aspx page , still is does not ask the user confirmation , in the monster.com website , while u click the update button , to update the resume.

              Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

              1 Reply Last reply
              0
              • S Sonia Gupta

                i am also looking the same.:)

                Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

                N Offline
                N Offline
                N a v a n e e t h
                wrote on last edited by
                #22

                Sonia Gupta wrote:

                i am also looking the same.

                :doh: As I said, if the window is opened by a JS, then you can close it without any confirmation message. When JS is not the owner of the window, usually browsers will show a message to prevent unwanted scripts closing the window.

                All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

                S 1 Reply Last reply
                0
                • N N a v a n e e t h

                  Sonia Gupta wrote:

                  i am also looking the same.

                  :doh: As I said, if the window is opened by a JS, then you can close it without any confirmation message. When JS is not the owner of the window, usually browsers will show a message to prevent unwanted scripts closing the window.

                  All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

                  S Offline
                  S Offline
                  Sonia Gupta
                  wrote on last edited by
                  #23

                  if u visit the monster.com , there click the update button, the pop up window will open , there u can close the window on button click . U many not require to upload the resume :) , but u can see the window is opening through aspx page .Still not asking my confirmation !!

                  Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

                  N 1 Reply Last reply
                  0
                  • S Sonia Gupta

                    if u visit the monster.com , there click the update button, the pop up window will open , there u can close the window on button click . U many not require to upload the resume :) , but u can see the window is opening through aspx page .Still not asking my confirmation !!

                    Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.

                    N Offline
                    N Offline
                    N a v a n e e t h
                    wrote on last edited by
                    #24

                    Sonia Gupta wrote:

                    if u visit the monster.com , there click the update button, the pop up window will open

                    OMG, this is what I am telling, the window is opened by a script, so it has permission to close the window without waiting for the confirmation from user. You try to open a window using Window.Open and close it using JS, you won't get any confirmation.

                    All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

                    1 Reply Last reply
                    0
                    • Z zaimah

                      how to create exit button? meaning close the window.

                      W Offline
                      W Offline
                      www Developerof NET
                      wrote on last edited by
                      #25

                      Have u tried this thing.. function Close_Window() { window.opener="something"; window.close(); } just call the function on the button click <div class="ForumSig">When you fail to plan, you are planning to fail.</div>

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups