# OnClientItemFocus

The **OnClientItemFocus** client-side event occurs when an item in the menu receives focus.

The event handler receives two parameters:

1. The instance of the menu firing the event.

2. An eventArgs parameter containing the following method:

* **get_item** returns a reference to the **RadMenuItem** that received focus.

* **get_domEvent** returns a reference to the DOM event that caused the focusing.

You can use this event to respond when an item receives focus. For example, the following event handler moves focus to the first child when a root level item receives focus:

```ASP.NET
<script type="text/javascript">
function FocusItem(menu, args) {
    var item = args.get_item();
    if (item.get_level() == 0)
        item.focusFirstChild();
}
</script>

<telerik:RadMenu RenderMode="Lightweight" ID="RadMenu1" runat="server" Flow="Horizontal" OnClientItemFocus="FocusItem">
    <Items>
        ...
    </Items>
</telerik:RadMenu>
```

## See Also

* [OnClientItemBlur](https://www.telerik.com/products/aspnet-ajax/documentation/controls/menu/client-side-programming/events/onclientitemblur)

* [OnClientMouseOver](https://www.telerik.com/products/aspnet-ajax/documentation/controls/menu/client-side-programming/events/onclientmouseover)

* [Overview](https://www.telerik.com/products/aspnet-ajax/documentation/controls/menu/client-side-programming/overview)

* [RadMenuItem Object](https://www.telerik.com/products/aspnet-ajax/documentation/controls/menu/client-side-programming/objects/radmenuitem-object)
