I don’t know java, so even a simple thing becomes impossible for me, what i would like to do is to use this code on a simple link, if internet exists open the link if not show a message, is there some example of this somewhere, i was not able to find. Second i would like to do the same for Iframes if internet exists show the contents of the iframe, if not show message.
In another post i found this:
You can trigger it on anything you want. It all depends on how frequently you want to check for the connection. I don’t know of any really efficient ways outside of a timer or having code on every button that triggers this check
i don’t mind having code on every button, but what would the code be?
I did find a way how to open a link instead of the alert by changing it with this: window.location = ‘https://www.google.com’;
but i still would like to change it in a herf and not in the java code if possible