Rationale
JavaScript of any type is not allowed to run within the Salesforce.com application context. This includes JavaScript blocks within HomePageComponents, WebLinks, Custom buttons, and all other components run under the Salesforce DOM.
Scope
Custom Objects