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
edoardo_spanoedoardo_spano 

Javascript in sidebar since Spring '16

Hi all,

since Spring '16 release, it is no longer possible to include javascript in "Messages & Alert" and "Custom Links" home page components.
Currently it seems that there are no workaround to face this change.
It is still possible to include javascript in a Visualforce home page component, but this code isn't able to interact with the rest of the page as Visualforce home page components are served in a different domain.

Someone knows a working workaround for this problem?

Thanks in advance.
Regards
pconpcon
Sidebar hacks are dead, long live sidebar hacks.  This is because of how Salesforce now handles javascript and html to prevent XSS and CSRF attacks.  If you want a good write up on the issue, I'd recommend reading this [1] stackexchange post.  TL;DR: There's nothing you can do about it.

[1] http://salesforce.stackexchange.com/questions/38918/end-of-javascript-sidebar-workarounds