window.location.ahref = "dashboard.php";
<script type="text/javascript"> $(document).ready(function(){ $("#login").click(function(){ username=$("#username").val(); password=$("#password").val(); $.ajax({ type: "POST", url: "logind.php", data: { user: username, pass: password }, success: function(msg){ if(msg == 0) { $required.html("username and password wrong.........").dialog('open'); } else { alert(msg); window.location.ahref = "dashboard.php"; } } }); return false; }); return true; }); </script>
window.location.href
window.location.ahref
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)