José Fernando Costa
1 min readJun 11, 2020

--

Hi Sergio,

You can check out this (https://repl.it/join/hvjdlwvy-ze1598) basic demo to see the redirect working. The trick is to use window.location.href in the JavaScript file instead of the location.reload() I used in this article.

While I left the alert after the redirect and it works in this demo, I advise you to add the alert to the destination file instead. It is only working in the demo because the source and the destination are both local files, if you tried to redirect to a live web page, the alert would disappear.

Please let me know if the demo helped :)

--

--

José Fernando Costa
José Fernando Costa

Written by José Fernando Costa

Documenting my life in text form for various audiences

No responses yet