# How to open a link into browser when a link is clicked?

**URL:** <https://forums.creativeclouddeveloper.com/t/how-to-open-a-link-into-browser-when-a-link-is-clicked/6419>\
**Category:** UXP Plugin API\
**Tags:** uxp, javascript\
**Created:** [June 20, 2023, 8:43pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-open-a-link-into-browser-when-a-link-is-clicked/6419 "2023-06-20T20:43:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![photonic](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/photonic/32/2513_2.png) [@photonic](https://forums.creativeclouddeveloper.com/u/photonic)\
**Post date:** [June 20, 2023, 8:43pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-open-a-link-into-browser-when-a-link-is-clicked/6419/1 "2023-06-20T20:43:08Z")

</div>

I want to put links to my plugin documentation, how could I make the user open the link into the browser when click a text or div, etc. ?

Here’s an example of what I want the user to click:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/d/d50521f59aff199edb993f8634b9c0c196678c8e.jpeg)

Thanks!

---

<div class="post-metadata">

**Author:** ![AnthonyK](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@AnthonyK](https://forums.creativeclouddeveloper.com/u/AnthonyK)\
**Post date:** [June 21, 2023, 1:12am UTC](https://forums.creativeclouddeveloper.com/t/how-to-open-a-link-into-browser-when-a-link-is-clicked/6419/2 "2023-06-21T01:12:45Z")

</div>

```auto
const shell=require("uxp").shell;
shell.openExternal("https://myLink.com");

```

Or, you can also use the [sp-link element](https://developer.adobe.com/photoshop/uxp/2022/uxp-api/reference-spectrum/Spectrum%20UXP%20Widgets/User%20Interface/sp-link/).

---

<div class="post-metadata">

**Author:** ![DavideBarranca](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/davidebarranca/32/1523_2.png) [@DavideBarranca](https://forums.creativeclouddeveloper.com/u/DavideBarranca)\
**Post date:** [June 21, 2023, 3:42pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-open-a-link-into-browser-when-a-link-is-clicked/6419/3 "2023-06-21T15:42:53Z")

</div>

Make sure to have your domain whitelisted in the manifest, like:

```auto
"requiredPermissions": {
        "launchProcess": {
            "schemes": [
                "https"
            ]
        },
        "network": {
            "domains": [
                "https://www.compositenation.com"
            ]
        }
    },

```

---

<div class="post-metadata">

**Author:** ![photonic](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/photonic/32/2513_2.png) [@photonic](https://forums.creativeclouddeveloper.com/u/photonic)\
**Post date:** [June 21, 2023, 10:51pm UTC](https://forums.creativeclouddeveloper.com/t/how-to-open-a-link-into-browser-when-a-link-is-clicked/6419/4 "2023-06-21T22:51:36Z")

</div>

Ii wasn’t working until I put the launchProcess key inside the manifest. Thank you! Even simple works now!

 

```auto
"launchProcess": {
  "schemes": [
      "https"
  ]
},

```
