Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta charset="utf-8" />
- <meta name="format-detection" content="telephone=no" />
- <!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
- <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
- <link rel="stylesheet" type="text/css" href="css/index.css" />
- <title>Hello World</title>
- </head>
- <body>
- <div class="app">
- <h1>PhoneGap</h1>
- <div id="deviceready" class="blink">
- <p class="event listening">Connecting to Device</p>
- <p class="event received">Device is Ready</p>
- </div>
- <input type = "text" placeholder="username" id="inputBox1"/> </br/>
- <input type= "password" placeholder= "password" id="passwordBox1" /><br/>
- <button onclick="submit()" >Log IN</button>
- <button onClick="reset()">Clear</button>
- </div>
- <script type="text/javascript" src="phonegap.js"></script>
- <script type="text/javascript" src="js/index.js"></script>
- <script type="text/javascript">
- app.initialize();
- </script>
- <script type="text/javascript">
- function submit() {
- alert("You have clicked the log In button");+
- window.location="inbox.html";
- }
- function reset() {
- alert("Are you sure you want to clear the fields?");
- document.getElementById("inputBox1").value="";
- document.getElementById("passwordBox1").value="";
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement