简体   繁体   English

你能用代码关闭一个谷歌appmaker应用吗?

[英]can you Close a google appmaker app with code?

Ok so im trying to customize my google domains google waffle.好的,我正在尝试自定义我的谷歌域谷歌华夫饼。 I want my own google sites to appear there and thought id use google appmaker to make a clickable link for every website.我希望我自己的谷歌网站出现在那里,并认为 id 使用谷歌 appmaker 为每个网站制作可点击的链接。

My question is then, can you create an app that opens a website then closes itself?那么我的问题是,你能创建一个打开网站然后自行关闭的应用程序吗? im having trouble with the closing itself part.我在关闭本身部分遇到问题。

I'm not sure if this is exactly what you pretend but if you want to open a link from the app and then close the app, then you can do the following:我不确定这是否正是你假装的,但如果你想从应用程序打开一个链接然后关闭应用程序,那么你可以执行以下操作:

var url = "https://google.com";
window.open(url, "_blank");
window.top.close();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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