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
Suma GangaSuma Ganga 

Hide Related lists

can we add JavaScript to SFDC Standard detail page ?
Anoop yadavAnoop yadav

You can not use JavaScript in standard Detail page.
If you want to hide the relatedList, you can do this by Editing Page Layout.
Shashikant SharmaShashikant Sharma
There is a way to execute java script in detail layout by adding it in Home Page component. See this example :