Answers for "how to start coding javascript in another page"

50

go to new page javascript

window.location.href = "http://mywebsite.com/home.html";
Posted by: Guest on July-18-2019
-1

how to redirect to another page in javascript on submit type

<script type="text/javascript" language="javascript">
function redirect()
{
    window.location.href="login.php";
}
</script>
<form  name="form1" id="form1" method="post">  
    <input type="submit" class="button4" name="order" 
        id="order" value="Place Order" onclick="redirect();" >
</form>
Posted by: Guest on December-19-2019

Code answers related to "how to start coding javascript in another page"

Code answers related to "Javascript"

Browse Popular Code Answers by Language