Front Browser Tokens

Can someone point me to a good explanation of these 2 tokens? Maybe some examples showing the use of the [0]?

%FrontBrowserField%document.forms[0][0]%

%FrontBrowserJavaScript%document.forms[0].innerHTML%

Thanks
Roger

See Document: Forms Property to decipher the indices.

More than just a Keyboard Maestro token, the construction references an HTML/JavaScript forms one. In short, you're retrieving the form by index [0] and element (that second index [0] in your first example).

Adding to what @mrpasini said, in case it's not clear, JavaScript like many programming languages indexes from 0, so something[0] is the first entry in the array stored in something. [1] would be the second entry.

1 Like