4 Replies Latest reply on Apr 16, 2018 8:14 AM by zelamedia

    Display mobile Version of Website in App

    zelamedia Level 1

      Hello my goal is to display my existing Website in an App (mobile version), I already did it with this simple code.

       

      <!DOCTYPE html>
      <html>
          <head>
              <meta charset="utf-8">
              <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
              <title>My-Website</title>
          </head>
          <body>
              <script type="text/javascript" src="cordova.js"></script>
                  <iframe id='wcf' src="https://mywebsite.com/" frameborder="0" style="overflow: hidden; height: 100%;
              width: 100%; position: absolute;"></iframe>
              
          </body>
      </html>
      

       

      But i think there need to be better solutions than use a simple HTML Iframe what i'm doing right now, what are the most used methods for something like this?

       

      Thank you