I have a custom list and I am showing some items on the home page. When the user clicks on a link it is sent to the display page. But, when you are on the display page, the cancel button returns the user to the list itself. I would like to redirect user back to the home page.
I know for save button there is a function called
PreSaveAction(), but is there one for cancel button?