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
Ranadheer chRanadheer ch 

Onblur is not working with my vf page Why?

Onblur is not working with my vf page Why?


Here Is my Vf Page:


<apex:inputField value="{!File_New_Protest__c.Company_Name__c}" onblur="Company" />


But it is not showing the blur value in my box
SarfarajSarfaraj
Hi 

onblur is an event, which can trigger some javascript code. First of all "Company" can be termed as a javascript code, but this does not perform any visible work. Can you please elaborate what is your objective?

Here are few examples of onblur event handling,
<apex:inputField value="{!File_New_Protest__c.Company_Name__c}" onblur="this.value='Company'" />
<apex:inputField value="{!File_New_Protest__c.Company_Name__c}" onblur="alert(this.value);" />
Let me know if this helps.

--Akram