Check out example codes for "redirect html". It will help you in understanding the concepts better.

Code Example 1

<meta http-equiv="refresh" content="time; URL=new_url" />

Code Example 2

<!DOCTYPE html>
      <title>HTML Meta Tag</title>
      <meta http-equiv = "refresh" content = "2; url =" />
      <p>Hello HTML5!</p>

Code Example 3

<html lang="en-US">
        <meta charset="UTF-8">
        <meta http-equiv="refresh" content="0; url=">
        <script type="text/javascript">
            window.location.href = ""
        <title>Page Redirection</title>
        <!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
        If you are not redirected automatically, follow this <a href=''>link to example</a>.

Code Example 4

<meta http-equiv="Refresh" content="0; url=" />

Code Example 5

// similar behavior as an HTTP redirect

// similar behavior as clicking on a link
window.location.href = "";

// Another method for doing redirecting with JavaScript is this:
window.location = "";

Learn ReactJs, React Native from