Open a URL on Form Submit Event - Google App Script
问题 I am using the sample code provided by Serge insas found here: Google Apps Script to open a URL I have modified the code slightly as seen below: Code.GS function modalUrl(){ FormApp.getUi() .showModalDialog( HtmlService.createHtmlOutputFromFile('openUrl').setHeight(50), 'Opening StackOverflow' ) } openURL.html <!DOCTYPE html> <html> <head> <base target="_blank"> <script> var url1 ='https://stackoverflow.com/a/54675103'; var winRef = window.open(url1); winRef ? google.script.host.close() :