This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
action:Execute_a_JavaScript_in_Google_Chrome [2016/07/26 19:49] JMichaelTX ADD JavaScript for Custom HTML Prompt |
action:Execute_a_JavaScript_in_Google_Chrome [2017/03/22 00:11] peternlewis [Using Keyboard Maestro Variables] |
||
---|---|---|---|
Line 3: | Line 3: | ||
- | **The Execute JavaScript Action is available ONLY for [[action:Execute_a_JavaScript_in_Safari|Safari]], [[action:Execute_a_JavaScript_in_Google_Chrome|Google Chrome]], and as of Ver 7.2, [[action:Execute_a_JavaScript_in_Custom_Prompt|Custom HTML Prompt]]** | + | **The Execute JavaScript Action is available ONLY for [[action:Execute_a_JavaScript_in_Safari|Safari]], [[action:Execute_a_JavaScript_in_Google_Chrome|Google Chrome]], and, as of Ver 7.1, [[action:Execute_a_JavaScript_in_Custom_Prompt|Custom HTML Prompt]]** |
* These are actually three separate Actions, one for each browser, and one for [[action:Custom_HTML_Prompt|Custom HTML Prompt Action]] | * These are actually three separate Actions, one for each browser, and one for [[action:Custom_HTML_Prompt|Custom HTML Prompt Action]] | ||
Line 35: | Line 35: | ||
``` | ``` | ||
- | If your Keyboard Maestro Variable contains spaces, they must be replaced with underscores in the JavaScript.\\ | + | If your Keyboard Maestro Variable contains spaces, they must be replaced with underscores in the JavaScript, for example: |
- | So, for example:\\ | + | |
Keyboard Maestro Variable Name: My KM Data | Keyboard Maestro Variable Name: My KM Data | ||
JavaScript Reference: document.kmvar.My_KM_Data | JavaScript Reference: document.kmvar.My_KM_Data |