Get current html
source of an hs.webview object?
#3075
Replies: 4 comments 2 replies
-
Use JavaScript to communicate between your web content and Lua: |
Beta Was this translation helpful? Give feedback.
-
@latenitefilms Any small examples of this that you know of? I'm not sure where to begin. Sorry. |
Beta Was this translation helpful? Give feedback.
-
@latenitefilms Took me the better part of the day but -- got it working! Thanks a million for the nudge in the right direction. |
Beta Was this translation helpful? Give feedback.
-
To anyone stumbling onto this randomly, this gist also helped get me to the finish line. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to make a "scratchpad" type function in Hammerspoon, and have a skeleton working (see here)
What I want to be able to do is save/restore the contents of this
<textarea>
-- but thehs.webview:html()
method only sets, it doesn't seem to get.Anyone know a way around this?
Beta Was this translation helpful? Give feedback.
All reactions