function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
LearnerrrLearnerrr 

how to call remote action function on page relode

Raj VakatiRaj Vakati
Try some think like below 
 
<script type="text/javascript">
   
   window.document.onload  =  searchCountry ; 
   
   
var searchCountry =    function searchCountry(acctId, searchString)
    {
        MyController.searchForCountries(acctId, searchString, function(result, event)
        {
            
        },{escape: true});
    }
</script>