• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    [WEB dev help] How to detect when a website is running with Opera Mini android

    Opera Mini
    2
    3
    1344
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • unibat
      unibat last edited by

      Hello Everyone,I'm a french young(>English level : 2/5) Developer.I Make a Website for my classroom.
      I use Opera Mini for android in my phone.But there is display error.
      I search CSS ,PHP or JS(>>minimal) source-code for detect if the website is view with Opera Mini.
      I use "@media handheld" but he doesn't work.I Need Heml !
      thank for your reply

      --FRENCH--
      Bonjour tout le monde,je suis un jeune développeur et je crée un site web pour ma classe.J'uitlise Opera Mini pour android avec mon téléphone.Mais des érreurs d'affichage sont apparues.
      Je cherche un code source CSS,PHP ou JS (<<le moins possible)pour détecter si le site est visualisé via opera mini.J'ai utilisé "@media handheld" mais ça n'a pas marché avec ma version.J'ai besoin de votre aide.
      Merci pour vos prochainesz réponses

      --
      Info : website : http://scharles38.esy.es/index.php ;http://scharles38.esy.es/style.css

      Reply Quote 0
        1 Reply Last reply
      • leocg
        leocg Moderator Volunteer last edited by

        Hello. You can detect when a user is using Opera Mini by adding a user agent reader into your sites code. Mozilla has a web developer page about it: https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent

        I hope that we solved your problem 🙂

        Reply Quote 0
          1 Reply Last reply
        • unibat
          unibat last edited by

          Phanks for your relpy but I have a new link : http://www.w3schools.com/js/js_window_navigator.asp
          This code is in JS and have 4 lines.
          Post solved 😃

          Reply Quote 0
            1 Reply Last reply
          • First post
            Last post

          Computer browsers

          • Opera for Windows
          • Opera for Mac
          • Opera for Linux
          • Opera beta version
          • Opera USB

          Mobile browsers

          • Opera for Android
          • Opera Mini
          • Opera Touch
          • Opera for basic phones

          • Add-ons
          • Opera account
          • Wallpapers
          • Opera Ads

          • Help & support
          • Opera blogs
          • Opera forums
          • Dev.Opera

          • Security
          • Privacy
          • Cookies Policy
          • EULA
          • Terms of Service

          • About Opera
          • Press info
          • Jobs
          • Investors
          • Become a partner
          • Contact us

          Follow Opera

          • Opera - Facebook
          • Opera - Twitter
          • Opera - YouTube
          • Opera - LinkedIn
          • Opera - Instagram

          © Opera Software 1995-