jQuery

How to Redirect to Another Web Page Using jQuery and JavaScript

In this tutorial, we are going to see how to redirect to Another Web Page using jQuery and JavaScript. You can simply use JavaScript’s window.location property to redirect a page, you don’t need jQuery for that. If you want to automatically redirect the user from one page to another, you can use the following syntax window.location.replace("url").
 

How to Redirect to Another Web Page Using jQuery and JavaScript
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>How to Redirect to Another Web Page</title>
		<script type="text/javascript">
			function redirection() {
				window.location.replace("https://stackhowto.com");
			}      
			setTimeout("redirection()", 10000);
		</script>
	</head>
	<body>
		<p>You will be redirected to www.stackhowto.com in 10 seconds. </p>
	</body>
</html>
mcqMCQPractice competitive and technical Multiple Choice Questions and Answers (MCQs) with simple and logical explanations to prepare for tests and interviews.Read More

Leave a Reply

Your email address will not be published. Required fields are marked *