Jump to content

run function of javascript


easegura777

Recommended Posts

 

 

I have the following code and it works correctly in UnimHTMLFrame, now I would like to execute the function from the click event of a button to pass it a parameter 

 

 <input type="button" value="Say hello" onClick="showAndroidToast('Hello Android!')" />

    <script type="text/javascript">
        function showAndroidToast(toast) {
            Android.showToast(toast);
        }
    </script>
    
 

 

Link to comment
Share on other sites

×
×
  • Create New...