there are workarounds and there are workarounds.
here's 1/2 of one using
@Daestrum's famous bridge
contraption. the other half is up to you, and it's pretty
simple.
some comments:
fx's webview is not the same as android's, and neither
is a full-blown browser substitute.
to take over the default right click (aka, contextmenu)
event is relatively easy. to recreate a new contextmenu
is not trivial, but since what you want is to be able to
download a file referred to in the download attribute of
an anchor tag, you don't have to go to that trouble. you
just need to pass the name of the file back to b4j where
you can download it using jokhttputils2.
you need to inject javascript for the first part, and
@Daestrum's
bridge for the second.
run the attached. depending on your level of experience, you'll
see what's going on. and note: my implementation is just one
of several ways of handling things.
you need to add a listener for right click (i added one for regular click
too). you need to disable the normal contextmenu and to determine
which anchor element was right clicked on (in your case, there was
only 1, but on a real webpage, there could be many). after you find
which element you clicked on, you need to find out the file name to
download. you pass that back to b4j using the bridge. once
safely back in b4j, you use jokhttputils2 to download the file.
what i've put together is based on your html code. obviously, there
is no real file to download. find a real site that uses the download
attribute and see if it works. i have no idea what happens if the
anchor tag doesn't use the download attribute.