On OS X 10.11.5, Xojo 2016r2.
<a href="" onclick="alert('asef'); return false;">12345</a>
I don’t think
alert() has ever automatically produced a result on Mac for me.
What exactly are you trying to do? Working with HTML Viewer can be tricky sometimes, and we have workarounds for a lot of things.
I was just using alert as a test so that’s less important, but I’m trying to get window.location.href working so I can control the HTMLViewer’s visible page.
Are you trying to intercept data or pageloads with CancelLoad?
The usual workaround for sending data out of the HTML Viewer to Xojo is to use Window.Status and use the StatusChanged event.
I think I figured it out, two separate “issues”.
- The alert() just does nothing in the HTMLViewer (which is fine).
[quote=278506:@Tim Parnell]Are you trying to intercept data or pageloads with CancelLoad?
The usual workaround for sending data out of the HTML Viewer to Xojo is to use Window.Status and use the StatusChanged event.[/quote]
Thanks for the help, Tim. I’m probably going to be using a combination of using CancelLoad and StatusChanged for this.