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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. web page disappearing slowly

web page disappearing slowly

Scheduled Pinned Locked Moved ASP.NET
javascriptquestion
2 Posts 2 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.
  • C Offline
    C Offline
    cse vidhya
    wrote on last edited by
    #1

    hi frnds, this code will find the browser close button,,,,, but ineed to disappear slowly while close the web page . where i have to write the code using javascript is it possibel ? if it is possible plz give me the solution function confirmUnload() { var mes = "Your message here"; if (event) { event.returnValue = mes; } else { } } window.onbeforeunload = confirmUnload;

    G 1 Reply Last reply
    0
    • C cse vidhya

      hi frnds, this code will find the browser close button,,,,, but ineed to disappear slowly while close the web page . where i have to write the code using javascript is it possibel ? if it is possible plz give me the solution function confirmUnload() { var mes = "Your message here"; if (event) { event.returnValue = mes; } else { } } window.onbeforeunload = confirmUnload;

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      No, that is not possible. For the browser to update the display in any way you would have to exit the function, but before you exit the function you have to decide if you will leave the page or not. So you have to choose between leaving the page or displaying the message.

      Despite everything, the person most likely to be fooling you next is yourself.

      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