Back

Start

Hello World

Starts your DS app in an html project.

app.Start()

Call it in the document.onload function in order to initialize DroidScript and execute your OnStart() function.

Example - Html App

<html>
<head>
    <meta name="viewport" content="width=device-width">
    <script src='file:///android_asset/app.js'></script>
</head>

<script>
    function OnStart()
    {
        app.ShowPopup( "HTML Rocks!" );
    }
</script>

<body onload="app.Start()" style="background-color: #ffffff;">
</body>
</html>
Copy All       Run