Black Friday sale is now on! 50% off Laravel: The Modular Way. Learn more

Javascript Redirect

David Carr

Javascript Tutorials

    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 = "";

    Then close the JavaScript.


    Here's the full script:

    <script type="text/javascript">
    window.location = "";


    Laravel Modules Book by David Carr

    Help support the blog so that I can continue creating new content!

    Subscribe to my newsletter

    Subscribe and get my books and product announcements.

    © 2009 - 2022 DC Blog. All code MIT license. All rights reserved.