jQuery

Salesforce

How to add Javascript to Standard Pagelayout in Salesforce?

To add Javascript to Standard Pagelayout in Salesforce, add a HTML Home page Component with HTML checkbox checked. Sample Javascript: <style type="text/css">#popup{display:none;position:absolute;height:100px;width:100px;background:#E6E6FA;      border: 2px solid black;overflow:auto;}#cls{color:red;text-align:right;}</style><script type="text/javascript" src="/soap/ajax/22.0/connection.js"></script><script src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js" type="text/javascript"></script><script ....

Salesforce

jQuery

jQuery simplifies the following HTML document traversing Event handling Animating Ajax interactions Advantages: Lightweight Footprint(zipped format) CSS3 Compliant(Supports CSS3) Cross-browser(Supports many browsers) Demo: http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_hide