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
Shwetal DesaiShwetal Desai 

java script events with Standard Action Methods

Hello experts,Can I use Javascript events of commandButton and CommandLink in Visualforce page with Standard Action method?

for example: onComplete event with action="{!save}"


is this possible?


You will probably need to use <apex:actionSupport> for your button or link.

No. You can't directly call a JavaScript function in button action. 

I can't understand why you need to put a JS function in button action when "onClick" method is available for JavaScripts.

Message Edited by prageeth on 10-04-2009 10:42 PM