It's a bad idea. But
- You have to allow pop-ups from https://docs.google.com
- Sample
- Copy sample
It's a bad idea. But
| function onOpen() { | |
| var html = '<script>\ | |
| window.open("http://bit.ly/googlescriptru");\ | |
| setTimeout(function(){google.script.host.close()},0)\ | |
| </script>'; | |
| SpreadsheetApp.getUi() | |
| .showModalDialog(HtmlService.createHtmlOutput(html), '*'); | |
| } |