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

主宰稳场 提交于 2019-12-24 10:47:25

问题


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.


回答1:


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




回答2:


In the app maker property editor for the link widget set the target property to _blank



来源:https://stackoverflow.com/questions/51639748/how-do-you-set-a-link-so-that-it-opens-in-a-new-tab-or-window-in-google-app-make

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!