• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

TRacking event.returnValue in IE

 
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all
I want to track which button was pressed on the window(alert type) generated by event.returnValue by pressing the cross button.i.e ok button or cancel button.
Is it possible, if yes how?
Thanks
kundan
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you talking about a confirm?



Eric
 
kundan varma
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No ERik
I am talking about IE feature to stop close from x button of browser.
If you write event.returnValue="do you want to close"
THen if you press the x button, it ask "You are navigating away from the page, do you want to close" with ok and cancel button. If you press cancel then page does not get closed, other wise there is no mean how i can stop close from x button.
Do you know some other feature to attain this.
Thanks
kundan
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is no way of stopping a person from closing the browser. There have been tons of attempts to do it, but you can not do it. Reasons why: Going to a site and they start forcing tons of pop up ads full of porn, spyware, virus, etc and you are not able to close any of the windows.

Eric
 
kundan varma
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
THanks ERik
BUt dont you think if somebody is using private networking and using browser based system then by allowing to do some change in registry, they should allow to achieve this functionality.
THanks
kundan
 
reply
    Bookmark Topic Watch Topic
  • New Topic