I am trying to stop loading my php page if javascript is not enabled on the user machine.
below method works fine. However, please let me know that it is cross browser and safe?
<noscript> <?php echo "Please Enable JavaScript in your browser!"; exit; ?> </noscript> <div id="main"> <div id="header"> <div id="logo"><a href="homepage.php" title="Go to Homepage"><span><?php echo $Name;?></span></a></div>.....
Please let me know any professional way that I can do this.
PS: Some of my users tried to disable JavaScript after loading the page. This thing also affects some of my pages. I get the wrong values ββto send as js is disabled. I want to overcome this situation, please.
source share