Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

General Web control events

Updated on October 19, 2022

The following table shows the events for web controls.

The events for HTML elements (except for Clicking, DoubleClicking, Created, and Destroyed) are all asynchronous for performance reasons. Cancelling an event for a web control depends on the control. If the control has an inline event handler (onclick=”submitform()”). Setting the Cancel property will not cancel it. If, however, the control is a link or a Submit button which executes actions without a script, such as navigating to a link or submitting the form, setting the Cancel property to True will cancel these actions.

Events

EventDescription
ClickOccurs when the user clicks anywhere on the control.
ClickingOccurs while the user clicks anywhere on the control.
Copy

Occurs when the text in the control has been copied by either the Ctrl+C keystroke sequence or when selected as a menu option. This event is also triggered when the Cut event occurs. When the Cut command is used (Ctrl+X or menu option), the Copy event fires and then the Cut event fires. Unlike Windows controls, for web controls the Copy event block drop-down arrow does not expose the Text parameter.

Note: This event is not available for all application types.

CreatedOccurs when the control is matched. For more information, see WaitAll and WaitAny components.
CutOccurs when the text in the control has been cut by either the Ctrl+X keystroke sequence or when selected as a menu option. When the Cut command is used (Ctrl+X or from the menu option), the Copy event fires and then the Cut event fires. Unlike Windows controls, for web controls the Cut event block drop-down arrow does not expose the Text parameter.

This event is not available for all application types.

DestroyedOccurs when the control is unmatched.
DisposedOccurs when the control is disposed by a call to the Dispose method.
DoubleClickOccurs when the user double-clicks anywhere on the control.
DoubleClickingOccurs while the user double-clicks anywhere on the control.
GotFocusOccurs when focus is given to the control.
HiddenOccurs when the Hide method is called on the control.
InnerHTMLChangedOccurs when the application uses the InnerHtml property to change the content of an element via Javascript.
InnerTextChangedOccurs when the application uses the InnerText property to change the content of an element via Javascript.
KeyDownOccurs when one or more keys are pressed while the control is in focus.
KeyPressOccurs when a key is pressed while the control has focus – triggered after the KeyDown event.
KeyUpOccurs when one or more keys are released while the control is in focus.
LostFocusOccurs when focus has left the control.
MouseDownOccurs when the user clicks the control with either mouse button.
MouseUpOccurs when the user releases a mouse button while the mouse is over the control.
PasteOccurs when the text in the control has been pasted from the Windows Clipboard by either the Ctrl+V keystroke sequence or when selected as a menu option. Unlike Windows controls, for web controls the Paste event block drop-down arrow does not expose the Text parameter.

This event is not available for all application types.

ShownOccurs when the Show method is called on the control.
TextChangedOccurs when the Text property has changed.
VisibilityChangedOccurs when the Visible property has changed.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us