OnBlur - cWebBaseControl

Fires when a control loses the focus

Type: Event

Parameters: None

Procedure OnBlur 


OnBlur is an event that triggers when the application user tabs or clicks away from a control that has the focus.

Set the pbServerOnBlur property to True to instruct the client to send the OnBlur event to the control's server-side object. Focus-related events such as OnBlur and OnFocus do not work well with server-side handlers. This is partly due to the inherent latency of server calls. If possible it is better to use a client-side handler for OnBlur (set via psClientOnBlur).

By default, pbServerOnBlur is False.


There are some fundamental differences between the Windows Entering and Exiting messages and the Web Focus and Blur messages. For example, the lack of support for focus scopes. OnFocus and OnBlur are also sent asynchronously, so when the server is still handling a Blur or Focus message, the user might have already made changes on the client.

See Also

OnValidate | OnFocus