hi all this is my first question. I am beginner with web apps totally. and i using mvc3.
i am developing a site and wanna know when user leaves the site and then show him/her a message to confirm exiting. i also visited a good example for this propose in https://web.archive.org/web/20211028110528/http://www.4guysfromrolla.com/demos/OnBeforeUnloadDemo1.htm but my question is: should i use this java script by writing it in all views or i can write it once and use it in every pages?
hi all this is my first question. I am beginner with web apps totally.
Share
You can write in a master page.
That is: