Following the discussion in Context menu for HtmlViewer I need to find out if the mouse is over an an image in the HtmlViewer (or WKWebviewMBS) or not.
According to
I need to add some sort of
me.EvaluateJavaScript("document.addEventListener('mouseover', function(e) { xojo.triggerWebEvent('cursorEvent', e.clientX + ':' + e.clientY + ':' + e.target.tagName); });")
according to ChatGPT. According to the docs "xojo.triggerWebEvent"should be " “executeInXojo”. How do I use this? I can’t find any example.
Confused…
Is there a simpler way to find this out? Is this possible at all?
4 posts - 3 participants