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
Chris VogeChris Voge 

Prevent subtabs from closing

Hello,

Is there a way with javascript to prevent closing a subtab
when clicking the "X" ? 

Thanks
AmitAmit (Salesforce Developers) 
Hello,

Please refer following links more more information :

http://stackoverflow.com/questions/1565304/jquery-prevent-window-closing

http://stackoverflow.com/questions/2229942/how-to-block-users-from-closing-a-window-in-javascript

http://forums.devarticles.com/javascript-development-22/how-to-stop-browser-from-closing-using-javascript-8458.html

Thanks,

Amit Bhardwaj