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. Juavascript Close window

Juavascript Close window

Scheduled Pinned Locked Moved ASP.NET
javascript
9 Posts 4 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.
  • A Offline
    A Offline
    avi_dadi2002
    wrote on last edited by
    #1

    Hi Everybody, I wrote one javascript function to close the popup window, while clicking the close button on my popup page(.aspx).But this function asks for confirmation while closing the window.But i don't want any confirmation while closing the window. Can anyone suggest me regarding this. Thanks in advance

    L V A A 4 Replies Last reply
    0
    • A avi_dadi2002

      Hi Everybody, I wrote one javascript function to close the popup window, while clicking the close button on my popup page(.aspx).But this function asks for confirmation while closing the window.But i don't want any confirmation while closing the window. Can anyone suggest me regarding this. Thanks in advance

      L Offline
      L Offline
      lakshmichawala
      wrote on last edited by
      #2

      u add this one in the source and try

      V A 2 Replies Last reply
      0
      • L lakshmichawala

        u add this one in the source and try

        V Offline
        V Offline
        vimal_yet
        wrote on last edited by
        #3

        this is to open new link in same window......

        If U Get Errors U Will Learn If U Don't Get Errors U Have Learnt

        1 Reply Last reply
        0
        • A avi_dadi2002

          Hi Everybody, I wrote one javascript function to close the popup window, while clicking the close button on my popup page(.aspx).But this function asks for confirmation while closing the window.But i don't want any confirmation while closing the window. Can anyone suggest me regarding this. Thanks in advance

          V Offline
          V Offline
          vimal_yet
          wrote on last edited by
          #4

          refer this link http://blogs.x2line.com/al/articles/350.aspx[^]

          If U Get Errors U Will Learn If U Don't Get Errors U Have Learnt

          1 Reply Last reply
          0
          • L lakshmichawala

            u add this one in the source and try

            A Offline
            A Offline
            avi_dadi2002
            wrote on last edited by
            #5

            Hi Lakshmi where should i add this. Below i gave my code see the code. close Thanks in advance.

            L 1 Reply Last reply
            0
            • A avi_dadi2002

              Hi Lakshmi where should i add this. Below i gave my code see the code. close Thanks in advance.

              L Offline
              L Offline
              lakshmichawala
              wrote on last edited by
              #6

              u add this code in the popupwindow before form tag

              A 1 Reply Last reply
              0
              • A avi_dadi2002

                Hi Everybody, I wrote one javascript function to close the popup window, while clicking the close button on my popup page(.aspx).But this function asks for confirmation while closing the window.But i don't want any confirmation while closing the window. Can anyone suggest me regarding this. Thanks in advance

                A Offline
                A Offline
                Abhishek Sur
                wrote on last edited by
                #7

                Try this

                onclick="window.opener=top;window.close();"

                Abhishek Sur

                1 Reply Last reply
                0
                • L lakshmichawala

                  u add this code in the popupwindow before form tag

                  A Offline
                  A Offline
                  avi_dadi2002
                  wrote on last edited by
                  #8

                  i don't have form tag for my page because my page has a master page. I put your code in master page but it was not working

                  1 Reply Last reply
                  0
                  • A avi_dadi2002

                    Hi Everybody, I wrote one javascript function to close the popup window, while clicking the close button on my popup page(.aspx).But this function asks for confirmation while closing the window.But i don't want any confirmation while closing the window. Can anyone suggest me regarding this. Thanks in advance

                    A Offline
                    A Offline
                    avi_dadi2002
                    wrote on last edited by
                    #9

                    See the code below it will work in .aspx function closeWindow() { window.open('','_self',''); window.close(); }

                    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