Загрузка страницы

How To Redirect A Page With JavaScript

In this quick, practical JavaScript tutorial, you'll learn how to redirect to another page using JavaScript. Get my free 32 page eBook of JavaScript HowTos 👉https://bit.ly/2ThXPL3

If you're just after the quick solution, you need to assign a new value to the window.location.href property in your browser (there is also a function available to use which you'll see in the video).

I'll also give you a real example of some working code on a webpage that you could use to setup an event listener on a button in JavaScript to send users to another page when they click it. Of course, this could be any type of event but you would probably want to let the user know if you are about to send them to some other destination.

Видео How To Redirect A Page With JavaScript канала codebubb
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
31 июля 2019 г. 1:28:30
00:02:27
Яндекс.Метрика