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. javascript close page

javascript close page

Scheduled Pinned Locked Moved ASP.NET
javascripttutorialquestion
6 Posts 5 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.
  • D Offline
    D Offline
    Denver Thomas
    wrote on last edited by
    #1

    Hi , I used "close();" method to close an aspx page.Nut when it is executing one warning message "the webpage you are viewing is trying to close the window" pop ups.How to disable this pop up ? With Warm regards

    A P A D 4 Replies Last reply
    0
    • D Denver Thomas

      Hi , I used "close();" method to close an aspx page.Nut when it is executing one warning message "the webpage you are viewing is trying to close the window" pop ups.How to disable this pop up ? With Warm regards

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Denver Thomas wrote:

      I used "close();" method to close an aspx page.

      I guess you want to close the Popup window. Try something like this

      var v= window.open(....);
      v.close()

      Or Self.close() on the popup pge. Not in main page;

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

      1 Reply Last reply
      0
      • D Denver Thomas

        Hi , I used "close();" method to close an aspx page.Nut when it is executing one warning message "the webpage you are viewing is trying to close the window" pop ups.How to disable this pop up ? With Warm regards

        P Offline
        P Offline
        pons_saravanan
        wrote on last edited by
        #3

        window.opener = "some text about the page"; window.close(); Now it wont ask you that prompt VB articles

        1 Reply Last reply
        0
        • D Denver Thomas

          Hi , I used "close();" method to close an aspx page.Nut when it is executing one warning message "the webpage you are viewing is trying to close the window" pop ups.How to disable this pop up ? With Warm regards

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

          use javascript:window.opener=self;window.close(); :-D

          Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


          My Latest Articles-->** Microsoft Bing MAP using Javascript
          CLR objects in SQL Server 2005
          Uncommon C# Keywords
          /xml>

          D 1 Reply Last reply
          0
          • A Abhishek Sur

            use javascript:window.opener=self;window.close(); :-D

            Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


            My Latest Articles-->** Microsoft Bing MAP using Javascript
            CLR objects in SQL Server 2005
            Uncommon C# Keywords
            /xml>

            D Offline
            D Offline
            Denver Thomas
            wrote on last edited by
            #5

            Hi bros, I want to close the calling page itself.Not the pop up page. just like "this.close()" in windows applications.I just used only Close() in one java script method.and the pop up coming is not a new page , its like a messagebox. With warm regards.

            1 Reply Last reply
            0
            • D Denver Thomas

              Hi , I used "close();" method to close an aspx page.Nut when it is executing one warning message "the webpage you are viewing is trying to close the window" pop ups.How to disable this pop up ? With Warm regards

              D Offline
              D Offline
              dan sh
              wrote on last edited by
              #6

              Cannot do much about it. It is the browser's property. Earlier you could have done this by setting window.opener and then closing the window. But now, you cannot. Check http://msdn.microsoft.com/en-us/ie/aa740486.aspx link. It says the same.

              It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD

              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