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>
Also in JavaScript:
- get top items from json object
- javascript get array difference
- js filter array of objects by value
- multiplication of complex numbers javascript
- space between react native
- switch javascript
- javascript genreate number id
- faker javascript name escape apostrophe
- jquery if else on click
- js unwrap element
- npm create react app
- ReferenceError: fs is not defined node js
- React looping hooks to display in other hook
- app.route()
- js class private
- makes number negative javascript
- jsdoc optional param
- cypress memory leak
- javascript canvas reset transform
- how to display current date and time in angular
- on click move item top react
- array index javascript show only first 2 elements
- js datetime format
- password validation with regular expression in javascript