Activity Forums Salesforce® Discussions How we can call the external javascript inside a Visualforce page?

  • Prakhar

    Member
    July 20, 2016 at 3:09 pm

    Hi Mohit,

    You can use the below tag to include the external script on Vf Pages:-

    <apex:includescript value="The Url of the specified script"/>

    In case if you also want to include external StyleSheet in Vf Page you can use the tag given below:-

    <apex:stylesheet value="The URL of the specified stylesheet" />.

    Hope that helps.

    Thanks.

  • Shekhar Gadewar

    Member
    July 21, 2016 at 12:52 pm

    Hi Mohit,

     

    Here is the example:

    <apex:includeScript value="{!$Resource.example_js}"/>

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos