Binding JavaScript code to Android code

This example shows the interaction between Java and Javascript. You can open another HTML page directly by clicking on its link. For example, click here to open next page or here to open a calculator.
Below, we provided three Javascript buttons. The first one shows an Android toast (instead of a Javascript alert). The second one shows an Android dialog. The last one open another activity.