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. alert message

alert message

Scheduled Pinned Locked Moved ASP.NET
helptutorial
6 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.
  • R Offline
    R Offline
    ratnakar_ravi
    wrote on last edited by
    #1

    Hi, I want display an alert message when user closes my web application how to do this help me thanks in adv

    B 1 Reply Last reply
    0
    • R ratnakar_ravi

      Hi, I want display an alert message when user closes my web application how to do this help me thanks in adv

      B Offline
      B Offline
      Brij
      wrote on last edited by
      #2

      , Alt+F4 , File -> Close if(window.event.clientX < 0 && window.event.clientY <0) { alert('your message'); } }

      Cheers!! Brij

      R 1 Reply Last reply
      0
      • B Brij

        , Alt+F4 , File -> Close if(window.event.clientX < 0 && window.event.clientY <0) { alert('your message'); } }

        Cheers!! Brij

        R Offline
        R Offline
        ratnakar_ravi
        wrote on last edited by
        #3

        thanks for your rply but thius is not working

        A B C 3 Replies Last reply
        0
        • R ratnakar_ravi

          thanks for your rply but thius is not working

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

          ratnakar_ravi wrote:

          but thius is not working

          Why ? From where did you call it ? Do you have mater page, if yes then call it from master page unload or if not then place it in every page unload. It should work !!!

          cheers, Abhijit

          1 Reply Last reply
          0
          • R ratnakar_ravi

            thanks for your rply but thius is not working

            B Offline
            B Offline
            Brij
            wrote on last edited by
            #5

            ratnakar_ravi wrote:

            thius is not working

            Have you put it on body tag? whether javascript function is called.Can you bit detail about you page structure?

            Cheers!! Brij

            1 Reply Last reply
            0
            • R ratnakar_ravi

              thanks for your rply but thius is not working

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              Do you have any idea at all ? How does 'this is not working' tell us anything ? What is happening ? How did you try to debug it to see if the code was being called at all ?

              Christian Graus Driven to the arms of OSX by Vista.

              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