I want to open an URL with google apps script when I click a button.
Here is my code:
function testNew(){
showAnchor('Ticket','http://www.mercadolivre.com.br/ajuda');
}
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");
}
However, I want to open a page that contains a frame. The frame is a form that is opened at the right side of the web page when I click "Fale Conosco".
My goal is to open the web page with the frame altogether so that I can copy a chunk of text into the form. So that I do not need to click "Fale Conosco" every time. The thing is that I don't know how to find the URL with the frame.
Is there any way of doing this?