User Tools

Site Tools


token:WebBrowserTokens

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
token:WebBrowserTokens [2023/09/19 04:59] peternlewistoken:WebBrowserTokens [2023/09/19 04:59] (current) peternlewis
Line 42: Line 42:
 ==== 1. Get All Text on Web Page ==== ==== 1. Get All Text on Web Page ====
  
-`%FrontBrowserJavaScript%document.body.innerText;%`+`%FrontBrowserJavaScript%document.body.innerText%`
  
 ==== 2. Get Full Page HTML ==== ==== 2. Get Full Page HTML ====
  
-`%FrontBrowserJavaScript%document.getElementsByTagName("html")[0].outerHTML;%`+`%FrontBrowserJavaScript%document.getElementsByTagName("html")[0].outerHTML%`
  
 ==== 3. Get Text Identified by HTML tag and class ==== ==== 3. Get Text Identified by HTML tag and class ====
  
-`%FrontBrowserJavaScript%document.querySelector('div.someclassname').innerText;%`+`%FrontBrowserJavaScript%document.querySelector('div.someclassname').innerText%`
  
 ===== Full List ===== ===== Full List =====
token/WebBrowserTokens.1695099555.txt.gz · Last modified: by peternlewis

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki