This tutorial will show you how to redirect your page with JavaScript.
first you need to tell the browser your using JavaScript by using
<script type="text/javascript">
Which tells the browser your using text with javascript you then use the window property and location to specify an address to use
window.location = "http://www.dcblog.dev";
Then close the JavaScript.
</script>
Here's the full script:
<script type="text/javascript">
window.location = "http://www.dcblog.dev";
</script>
Read articles directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Copyright © 2006 - 2025 DC Blog - All rights reserved.