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. disable close(x) in a pop up window using java script

disable close(x) in a pop up window using java script

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

    how to disable close(x) button in a pop up window using javascript

    A D S 3 Replies Last reply
    0
    • V vineesh v

      how to disable close(x) button in a pop up window using javascript

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

      javascript : document.getElementById('btnid').disabled = true; this will do :) :)

      Abhishek Sur My Latest Articles Basics on LINQ and Lambda Expressions
      Create .NET Templates

      A 1 Reply Last reply
      0
      • V vineesh v

        how to disable close(x) button in a pop up window using javascript

        D Offline
        D Offline
        dotnetmember
        wrote on last edited by
        #3

        It is not possible to disable the close(X) button of the pop up window using script.

        1 Reply Last reply
        0
        • V vineesh v

          how to disable close(x) button in a pop up window using javascript

          S Offline
          S Offline
          saanj
          wrote on last edited by
          #4

          Hi, Are you talking about the standard javascript alert window or something customized one. If it is JavaScript one then I would say that its not possible but for customized one you can do it using document.getElementById(controlID).style.visible = false.

          Either you love IT or leave IT...

          1 Reply Last reply
          0
          • A Abhishek Sur

            javascript : document.getElementById('btnid').disabled = true; this will do :) :)

            Abhishek Sur My Latest Articles Basics on LINQ and Lambda Expressions
            Create .NET Templates

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

            Abhishek Sur wrote:

            javascript : document.getElementById('btnid').disabled = true;

            button. ;P .

            cheers, Abhijit CodeProject MVP

            A 1 Reply Last reply
            0
            • A Abhijit Jana

              Abhishek Sur wrote:

              javascript : document.getElementById('btnid').disabled = true;

              button. ;P .

              cheers, Abhijit CodeProject MVP

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

              Oh .. My bad.. I have overlook on the Window close button. Windows close button cannot be disabled. :rose:

              Abhishek Sur My Latest Articles Basics on LINQ and Lambda Expressions
              Create .NET Templates

              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