Search code examples
google-apps-scriptgoogle-app-maker

How do you set a Link so that it opens in a new tab or window in Google App Maker?


In my Google App Maker application, whenever a user clicks on a Link, it causes the href link to open in the same window as the application. This causes a problem because the user has to click back in order to access the application again. Is there any way to set the link such that when a user clicks on it (without right click > open new tab), the page opens in a new tab/window? Thanks.


Solution

  • Try window.open('www.your_link.com','_blank');