When I try to sign in, I’m thrown on a WordPress website through a browser, I want to be thrown into the index.html phonegap

$('#loginForm').submit(function(){ var uid = $('#user_login').val(); var pwd = $('#user_pass').val(); $.getJSON('http://example.com/login.php', { user_login: uid, user_pass: pwd }, function(json) { $.each(json, function(k, v) { if(v == "true" || v == true){ window.location="index.html"; } else { $('#loginError').html("Login failed, username and/or password don't match"); } }); }); return false; }); 
 <form name="loginform" id="loginform" action="" method="post"> <p> <label for="user_login">Youre e-mail<br /> <input type="text" name="log" id="user_login" class="input" value="" size="20" /></label> </p> <p> <label for="user_pass">Youre password<br /> <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" /></label> </p> <p class="submit"> <input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="Login" /> </p> </form> 

    0