Search
 
SCRIPT & CODE EXAMPLE
 

HTML

Redirect User To Different Page

 
header("Location: pagename.php");
Comment

redirect user when want to access html page

add a script in the very top of your page to check for example if the user is logged In : 
//////////////////////////////////////////
<script>
  if (window.sessionStorage.getItem("data") == null) {
    window.location.replace(
      "http://localhost/hospital/front-end/public/index.html"
    );
  }
</script>
///////////////////////////////////////////
Comment

PREVIOUS NEXT
Code Example
Html :: HOW TO PERFORM AN ACTION AN OPTION IS CLICKED IN DROP DOWN 
Html :: What is the naming scheme for provider plugins? 
Html :: javaprov 
Html :: html unidades de medida 
Html :: lightning-textarea size 
Html :: index number in odoo reports 
Html :: html <br , paragraph break or text break 
Html :: bootstrap 4 label label-success 
Html :: how to make rom hajkcko 
Html :: Simple example of adding javascript in HTML 
Html :: aria-describedby and role 
Html :: howdy 
Html :: webpage opaque photo caption 
Html :: bootstrap centred modal 
Html :: math whizz 
Html :: sdfsdfsd 
Html :: html body background color 
Html :: How can React read a session SET in PHP 
Html :: vim terminal to add data in each line with file open 
Html :: html slider 
Html :: html star 
Html :: how to use input type file and show selected file on screen 
Html :: html <small 
Css :: get rid of arrows number input 
Css :: input checkbox size 
Css :: text align left top 
Css :: how to make text bold in css 
Css :: new line in url 
Css :: font awesome after css 
Css :: instagram gradient css 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =