W3 Mind Logo
Home » JavaScript URL Redirection

JavaScript URL Redirection

If you want to set page redirection, Add the below JavaScript code in header of that page with redirection code with the URL of the page you want to redirect to.

Just FYI, Javascript redirect does not return 301 permanent redirect status code.

				
					<script type="text/javascript">
    // JavaScript URL redirection
    window.location.replace("https://w3mind.com/new-page.html");
</script>
				
			
About Author
Picture of W3Mind

W3Mind

W3Mind focuses on Blogging, Make Money Online, SEO, Business Blogging, Social Media, WordPress, Internet Tools, Web Design and Development.
Give it a Share
Facebook
Twitter
LinkedIn
You May Also Like
How to
START A
BLOG
(step by step)
Load WordPress Sites in as fast as 37ms!