Answers for "redirect page javascript"

48

redirect javascript

// similar behavior as an HTTP redirect
window.location.replace("http://stackoverflow.com");

// similar behavior as clicking on a link
window.location.href = "http://stackoverflow.com";
Posted by: Guest on May-14-2020
0

window relocation from navbar

$query = "select* from main_menus";
            $result = mysqli_query($con,$query);

            while($row = mysqli_fetch_assoc($result)) {
                $main_menus_id = $row['menu_id'];
                $menu_title = $row['menu_title'];
                $menu_url = $row['menu_url'];
          ?>
        <li class="nav-item ">
          <a href="<?php echo $menu_url ?>"><?php echo $menu_title ?></a>
        </li>
        <?php 
      }
      ?>
      </ul>
    </div>`
Posted by: Guest on September-18-2020

Code answers related to "redirect page javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language