[英]How do I open another page with a button in Google Apps Scripts?
I am new to programming and I have a question.我是编程新手,我有一个问题。 I have my main web page (boton) with three buttons and I want to create a function so that the button can open a page (pagina1 or pagina2) with Google App Script or GAS.
我有我的主要 web 页面(boton)和三个按钮,我想创建一个 function 以便按钮可以使用 Google App Script 或 GAS 打开页面(pagina1 或 pagina2)。 How can I do that?
我怎样才能做到这一点? I just have this, which is the structure of the buttons on the boton page.
我就是这个,就是boton页面上按钮的结构。
and this is how it shows on the page这就是它在页面上的显示方式
Well, Instead of using "GAS" you can use the anchor tag of HTML好吧,您可以使用HTML的锚标签,而不是使用“GAS”
Like :- here is an example - Google喜欢:-这是一个例子-谷歌
You need to change the website link and your button text, and BOOM!您需要更改网站链接和按钮文本,然后 BOOM!
Thanks;)谢谢;)
Add the '_blank' in your script:在脚本中添加“_blank”:
<button class="btn" onclick="window.open('https://stackoverflow.com', '_blank');">stackoverflow</button>
Well, Instead of using "GAS" you can use the anchor tag of HTML好吧,您可以使用 HTML 的锚标签,而不是使用“GAS”
Like:- here is an example - Google喜欢: - 这是一个例子 -谷歌
You need to change the website link and your button text, and BOOM!您需要更改网站链接和按钮文本,然后 BOOM!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.