> For the complete documentation index, see [llms.txt](https://docs.maker.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maker.co/maker-pages/advanced-features/how-can-i-open-only-certain-links-in-a-new-windowtab.md).

# How can I open only certain links in a new window/tab?

{% stepper %}
{% step %}

### Tip! Maker allows you to set all links to open in a new window or the same window as a storywide setting. Use the steps listed below only if you want a certain link to open a new window and the rest of the page open in the same window.

{% endstep %}

{% step %}

### Click on the element that you want to open in a new window.

<figure><img src="/files/SmzuushGmg2b2DyIc06A" alt="How can I open only certain links in a new window/tab? — step 2"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Click "Add link"

<figure><img src="/files/0nP5SgEpcMajrH3TAgfB" alt="How can I open only certain links in a new window/tab? — step 3"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Click on Trigger Custom Javascript

<figure><img src="/files/jRPkmNnl8jLWTAIhePQ9" alt="How can I open only certain links in a new window/tab? — step 4"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Edit the field and add the script as seen below and replace the URL as seen in the image below from <https://google.com> to the one you would like to take the user upon click. The script would look like this- window\.open ('add URL here', '\_blank') Click Done.

<figure><img src="/files/HDvxCW2HjFZfFoKOoLKG" alt="How can I open only certain links in a new window/tab? — step 5"><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.maker.co/maker-pages/advanced-features/how-can-i-open-only-certain-links-in-a-new-windowtab.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
