# Javascript: ContextMenuEventArgs.location Property

> A binary combination of ContextMenuLocation values.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 31.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: ContextMenuEventArgs.location Property
- **178 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/contextmenueventargs/location-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/contextmenueventargs/location-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/contextmenueventargs/location-property/llms-full.txt

---

### Description

A binary combination of [ContextMenuLocation](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/contextmenulocation-enumeration/llms-full.txt) values.

### Syntax

```javascript
<number> ContextMenuEventArgs.location
```

### Examples

The following example demonstrates `ContextMenuEventArgs.location` in a practical document-editing workflow. A binary combination of ContextMenuLocation values.

```javascript
function inspectLocation(contextMenuEventArgs) {
    const location = contextMenuEventArgs.location;
    console.log("location:", location);
}
```

---

## Nearby

- **Previous:** [Javascript: ContextMenuEventArgs.items Property](https://docs.textcontrol.com/ds-server/reference/javascript/contextmenueventargs/items-property/llms-full.txt)
- **Next:** [ContextMenuEventCallback Function](https://docs.textcontrol.com/ds-server/reference/javascript/contextmenueventcallback/llms-full.txt)
