# Open URL in a new window when clicking on a KendoReact Menu item

## Environment

<table>
	<tbody>
		<tr>
			<td>Product Version</td>
			<td>12.0.2</td>
		</tr>
		<tr>
			<td>Product</td>
			<td>Progress® KendoReact Menu</td>
		</tr>
	</tbody>
</table>

## Description

I want to open the URL from a Menu item in a new window.

## Solution

To customize the default behavior of the Menu and how it handles URL set in the `MenuItem`, define a custom [linkRender](https://www.telerik.com/kendo-react-ui/components/layout/api/menuprops#linkrender) for the Menu. Within the custom `linkRender`, conditionally render either an anchor element or a `SPAN`, based on the `props.url` value. In the custom anchor element, set the `href` and add `onClick` handler, where you can stop the propagation of the click event and manually open the URL from the `href` in new window.

The following example demonstrates this approach in action:

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/menu/menu-open-url-in-new-window/source.txt)

## See Also

* [KendoReact Menu Overview](https://www.telerik.com/kendo-react-ui/components/layout/menu)
* [Custom Rendering](https://www.telerik.com/kendo-react-ui/components/layout/menu/rendering)
