# element.open()

> Opens the TryYourSize window for this element's product, as the element itself does on click.

Source: https://docs.tryyoursize.com/reference/web/element-open/

*Method* · `@tryyoursize/sdk`

Opens the TryYourSize window for this element's product, as the element itself does on click. Use it from your own button or link.

```ts
open(): void;
```

## Example

**JavaScript**

```js
document.querySelector("#my-size-link").addEventListener("click", (e) => {
  e.preventDefault();
  guide.open();
});
```

**React**

```tsx
const ref = useRef<ElementHandle>(null);
<SizeGuide ref={ref} product="SKU-123" />
<button onClick={() => ref.current?.open()}>Find my size</button>
```
