K
K
kyprijan2020-01-27 14:32:06
Google Workspace
kyprijan, 2020-01-27 14:32:06

How to use Document.evaluate() function from JS in Google Script?

Is it possible to somehow use the Document.evaluate() function from JS in Google Script?
Gives errors like this.

document.evaluate("//html", text, null, XPathResult.ANY_TYPE, null)

ReferenceError: Object "document" is not defined.

text. evaluate("//html", text, null, XPathResult.ANY_TYPE, null)

TypeError: Cannot find evaluate function on object

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aleksei Shebanits, 2021-01-26
@shebanits

No way, only through a modal window or a sidebar that uses html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question