function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
springeverspringever 

browser back button return cached list

 

hello,

How can I use browser back button and get a message.eg: return or not?.

 

How can I  do?

 

Thanks

Navatar_DbSupNavatar_DbSup

Hi,

You can use the below code for browser back button

<script>

     

   window.onunload = function(){alert('display your custom message')};

 

</script>

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.