I have already got the code to create a ui in spreadsheet with the link that user can click like this:
function testNew(){
showAnchor('Google','http://www.gogole.com/');
}
function showAnchor(name,url) {
var html = '<html><body><a href="'+url+'" target="blank" onclick="google.script.host.close()">'+name+'</a></body></html>';
var ui = HtmlService.createHtmlOutput(html)
SpreadsheetApp.getUi().showModelessDialog(ui,"demo");
}
But, I DO NOT want to create a UI within google sheet.
I am looking for a simple way to simply open a URL in browser tag from google sheet script. How can I do that?
Already tried this but this is not working in google sheet script
window.open("https://www.google.com");
Is there any way to simply open a URL in browser?