Check Online Status

  • Hi.
    I wanted to check if my tour has access to internet, if so enable my google maps plugin, otherwise load a jpeg map with hotspots.
    I tried to use havenetworkacces attribute but that's not the way. Although I don't want to download a small file from network to check whether I have access to it or not. I want to check it in code.

  • "Although I don't want to download a small file from network to check whether I have access to it or not. I want to check it in code."

    That's a strange thought. Is there a particular reason why? Downloading a CDN 1px png as the test makes the code to set the variable a few characters

    onloaded="set(network_access,true);"

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!