how to redirect to another page using javascript

  • In this example, We explain how to redirect to .aspx File using Javascript Function.
  • There is a sitution when we set timer in javascript function when the time is up then the page is redirect to specify page like below.
          <script type="javascript">
            function demo()
            {
                    window.location.href = "Default.aspx";
            }
          </script>