---
title: Reopen CMP - Customised button
slug: pubtech-cmp/reopen-cmp-customised-button
docTags: 
createdAt: 2021-08-25T12:22:55.000Z
---

# Open CMP through JS API

If it's necessary to reopen the CMP for the user to modify their consent, you can call the function: `window.___pubtech_open_cmp()`

Example:

```html
<a href="#" onclick="window.___pubtech_open_cmp()">Manage Consents</a>
```

## Open the CMP on the Advertising Vendors tab via JavaScript.

If you need to open the list of advertising vendors directly, you can use:`window.___pubtech_open_cmp_vendor()`

Example:

```javascript
<a href="#" onclick="window.___pubtech_open_cmp_vendor()">Vendor List</a>
```

