Activity Forums Reply To:

  • Sourabh

    Member
    April 1, 2016 at 8:14 am

    `Hi shubham hope it will work for you :-

    -------- visualforce page --------------

    <script>
    function scriptcalling()
    {
    alert('I am here');
    }
    </script>

    &nbsp;

    -------- apex class --------------
    public class calljavascript
    {
    public string callscript{get;set;}
    public calljavascript()
    {
    callscript='<script> scriptcalling(); </script>';
    }
    }

    • This reply was modified 8 years, 7 months ago by  Sourabh.
    • This reply was modified 3 years, 5 months ago by  Forcetalks.
    • This reply was modified 3 years, 5 months ago by  Forcetalks.
    • This reply was modified 3 years, 5 months ago by  Forcetalks.
    • This reply was modified 3 years, 5 months ago by  Forcetalks.
    • This reply was modified 3 years, 5 months ago by  Forcetalks.
    • This reply was modified 3 years, 5 months ago by  Forcetalks.