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
Mrityunjaya VashishthaMrityunjaya Vashishtha 

I want an alert ("Are you sure") on cancel button whenever a new case page layout is opened.

I need an alert whenever a new record page layout is cancelled, a new alert should popup.
AnkaiahAnkaiah (Salesforce Developers) 
Hi,

Refer the below link have solution for similar kind of ask.
https://salesforce.stackexchange.com/questions/44121/popping-up-javascript-alert-box-on-standard-page-layout

If this helps, Please mark it as best answer.

Thanks!!