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
SS KarthickSS Karthick 

Call the JavaScript Function when page is loaded

Hi folks,
         Can anyone tell me how to call the java script function when the visualforce page is loaded ?
I need a sample code for that?

Thanks in advance
Karthick
Best Answer chosen by SS Karthick
PratikPratik (Salesforce Developers) 
Hi Karthick,

This should help you:

http://salesforce.stackexchange.com/questions/23709/call-javascript-function-in-visualforce-page
https://developer.salesforce.com/forums?id=906F0000000957DIAQ

Thanks,
Pratik

All Answers

PratikPratik (Salesforce Developers) 
Hi Karthick,

This should help you:

http://salesforce.stackexchange.com/questions/23709/call-javascript-function-in-visualforce-page
https://developer.salesforce.com/forums?id=906F0000000957DIAQ

Thanks,
Pratik
This was selected as the best answer
Naveen Rahul 3Naveen Rahul 3
create a component and add them to the bottom of page or layout ,where you need to call em.

Thanks
D Naveen Rahul.