title: detect mobile browser and javascript support
body: <p>I want to detect if the request is coming from a mobile browser (i m using java/jsp)</p>
  
  <p>Now when i access the page from my samsung mobile phone i get the user agent header as: - </p>
  
  <p>SAMSUNG-GT-S5620/S5620DDJE1 SHP/VPP/R5 Dolfin/1.5 Nextreaming SMM-MMS/1.2.0 profile/MIDP-2.1 configuration/CLDC-1.1</p>
  
  <p>should i check that the header contains iPhone,BlackBerry,Android,webOS,iPod,Samsung or there is some more simple way...</p>
  
  <p>How can i make sure that the browser supports javascript and</p>
  
  <p>by the way does mobile browsers suppport hashchange or anything js "<strong>advanced</strong>"</p>
  
  <p>If javascript is not supported by the mobile browser then i would like to redirect to some simple page with a single form...</p>
  
  <p>or i have to make a simple page for mobile browser such that it runs well <strong>with or without</strong> js support</p>
  
  <p>thanks</p>