Getting external links to open in new tab

Hi all! I’m starting to work in Twine 2.3.9, Chapbook story format again and seem to have forgotten quite a bit since my last project. I have seen some resources for Harlowe, SugarCube, etc for how to link to external sites and have them open in a new tab, but I haven’t been able to figure out how to make this work in Chapbook since the syntax is so different. Is there any way to accomplish this?

Assuming that Chapbook allows standard html like some of the other Twine formats, you can do this:

<a href="https://google.com" target="_blank">Go to Google</a>

This is the result: Go to Google

Specifically, target="_blank" is what opens the new tab.

2 Likes

Thank you, this 100 percent worked! I was trying too hard to incorporate part of the html into the usual linking mechanism for Chapbook and didn’t even think about skipping right to pure html formatting :woman_facepalming: