token:FrontBrowserJavaScript
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| token:FrontBrowserJavaScript [2023/09/13 04:28] – peternlewis | token:FrontBrowserJavaScript [2023/09/19 05:03] (current) – peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== FrontBrowserJavaScript (v8+) Token ====== | + | ~~REDIRECT>WebBrowserTokens~~ |
| - | + | ||
| - | The FrontBrowserJavaScript token (and related SafariJavaScript and ChromeJavaScript tokens) provides a quick and simple means to execute one line of JavaScript in a Web Browser and return the results to an action like the [[action: | + | |
| - | + | ||
| - | The execution time is limited (v11.0+) to half a second, so for longer or more complex JavaScript code, use the [[actions: | + | |
| - | + | ||
| - | The front browser will be the most recently front Safari-like or Chrome-like web browser. | + | |
| - | + | ||
| - | ===== Format ===== | + | |
| - | + | ||
| - | Like all [[: | + | |
| - | `%FrontBrowserJavaScript%< | + | |
| - | + | ||
| - | ===== Examples ===== | + | |
| - | + | ||
| - | ==== 1. Get All Text on Web Page ==== | + | |
| - | + | ||
| - | `%FrontBrowserJavaScript%document.body.innerText; | + | |
| - | + | ||
| - | ==== 2. Get Full Page HTML ==== | + | |
| - | + | ||
| - | `%FrontBrowserJavaScript%document.getElementsByTagName(" | + | |
| - | + | ||
| - | ==== 3. Get Text Identified by HTML tag and class ==== | + | |
| - | + | ||
| - | `%FrontBrowserJavaScript%document.querySelector(' | + | |
| - | + | ||
| - | + | ||
| - | ===== See Also ===== | + | |
| - | + | ||
| - | === Tokens === | + | |
| - | + | ||
| - | * [[token: | + | |
| - | * [[token: | + | |
| - | * [[token: | + | |
| - | * [[token: | + | |
| - | * [[token: | + | |
| - | * [[token: | + | |
| - | * [[token: | + | |
| - | * [[token: | + | |
| - | * [[token: | + | |
| - | * [[token: | + | |
| - | * [[token: | + | |
| - | * [[token: | + | |
| - | * [[token: | + | |
| - | * [[token: | + | |
| - | * [[token: | + | |
| - | * [[: | + | |
token/FrontBrowserJavaScript.1694579306.txt.gz · Last modified: by peternlewis
