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. open a pop up window

open a pop up window

Scheduled Pinned Locked Moved ASP.NET
3 Posts 3 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.
  • V Offline
    V Offline
    vishnukamath
    wrote on last edited by
    #1

    hi, On opening the pop up window the parent has to be closed. when im using the following code: window.opener=null; window.opener.close(); in the pop up window..im getting an alert box like "the page you are viewing is about to close".. i have to stop that alert box.. any suggestions please. thanking you, with regards, vishnu.

    P M 2 Replies Last reply
    0
    • V vishnukamath

      hi, On opening the pop up window the parent has to be closed. when im using the following code: window.opener=null; window.opener.close(); in the pop up window..im getting an alert box like "the page you are viewing is about to close".. i have to stop that alert box.. any suggestions please. thanking you, with regards, vishnu.

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      You can't get rid of it. It's a browser feature and the trick you're using hasn't worked since IE6.

      I'm not a stalker, I just know things. Oh by the way, you're out of milk.

      Forgive your enemies - it messes with their heads

      My blog | My articles | MoXAML PowerToys | Onyx

      1 Reply Last reply
      0
      • V vishnukamath

        hi, On opening the pop up window the parent has to be closed. when im using the following code: window.opener=null; window.opener.close(); in the pop up window..im getting an alert box like "the page you are viewing is about to close".. i have to stop that alert box.. any suggestions please. thanking you, with regards, vishnu.

        M Offline
        M Offline
        musefan
        wrote on last edited by
        #3

        So you want to pop up one window and close the window which opened it? Surely that can be achieved by just navigating to the new page? (miraculously the old window page will be gone!)

        return 5;

        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