Activity › Forums › Salesforce® Discussions › How can I access javascript function in lightning component? Tagged: Javascript in Salesforce, Salesforce Lightning, Salesforce Lightning Components Salesforce® Discussions How can I access javascript function in lightning component? Posted by PRANAV on August 11, 2016 at 1:50 PM Hi All, How can I access javascript function in lightning component? Thanks Parul replied 7 years, 9 months ago 4 Members · 3 Replies Javascript in SalesforceSalesforce LightningSalesforce Lightning Components 3 Replies Abhinav Member August 11, 2016 at 3:59 PM Hi Pranav, Please refer to the link below:- https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/js_helper.htm https://developer.salesforce.com/blogs/developer-relations/2015/04/lightning-components-javascript-api.html I hope it helps. [adinserter block='9'] shariq Member September 18, 2018 at 8:03 AM Hi, You can use the namespace of c to javascript controller method. Below is a snippet of code of lightning component that is calling the callClient method of JS: <aura:handler name=”init” value=”{!this}” action=”{!c.callClient}”/> Thanks Parul Member September 18, 2018 at 10:49 AM A helper function can be called from any JavaScript code in a component’s bundle, such as from a client-side controller or renderer. for ex: <aura:handler event=”aura:doneRendering” action=”{!c.higlightCurrentRecordId}”/> Thanks Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me