简体   繁体   中英

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. How can I do that? I just have this, which is the structure of the buttons on the boton page.

在此处输入图像描述

and this is how it shows on the page

在此处输入图像描述

Well, Instead of using "GAS" you can use the anchor tag of HTML

Like :- here is an example - Google

You need to change the website link and your button text, and BOOM!

Thanks;)

Add the '_blank' in your script:

<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

Like:- here is an example - Google

You need to change the website link and your button text, and BOOM!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM