Skip to content

Instantly share code, notes, and snippets.

View sajanthomas01's full-sized avatar
🏠
Working from home

Sajan Thomas sajanthomas01

🏠
Working from home
View GitHub Profile
@rheajt
rheajt / Code.gs
Created June 14, 2017 15:38
google apps script to open a new website in a new window
function openTab() {
var selection = SpreadsheetApp.getActiveSheet().getActiveCell().getValue();
var html = "<script>window.open('" + selection + "');google.script.host.close();</script>";
var userInterface = HtmlService.createHtmlOutput(html);
SpreadsheetApp.getUi().showModalDialog(userInterface, 'Open Tab');
}