Creating a User Interface ◾ 27
Note: Traditionally, when the Back button on the device is selected, it exits from the application
and opens the previous screen, which may be the Home screen or application lists screen—from
where the application is invoked.
Listing 2.5 Code Written in the index.html File
<!DOCTYPE HTML>
<html>
<head>
<title>PhoneGap Application</title>
<script type = "text/javascript" charset = "utf-8" src = "cordova-2.3.0.js">
</script>
</head>
<body>
<a href = "about.html">About</a>
<a href = "contact.html">Contact</a><br/>
<b> Welcome to our PhoneGap App </b>
</body>
</html>
In the code above, we can see that two hyperlinks, About and Contact, are defined, which
when clicked will navigate us to the about.html and contact.