<script type= "Text/javascript" >function browserredirect () {var suseragent= navigator.userAgent.toLowerCase (); var bisipad= suseragent.match (/ipad/i) = = "ipad"; var bisiphoneos= suseragent.match (/iphone os/i) = = "iphone OS"; var bismidp= suseragent.match (/midp/i) = = "MIDP"; var bisuc7= suseragent.match (/rv:1.2.3.4/i) = = "rv:1.2.3.4"; var bisuc= suseragent.match (/ucweb/i) = = "UCWeb"; var bisandroid= suseragent.match (/android/i) = = "Android"; var bisce= suseragent.match (/windows ce/i) = = "Windows CE"; var biswm= suseragent.match (/windows mobile/i) = = "Windows Mobile"; if (Bisipad | | bisiphoneos | | bismidp | | bIsUc7 | | bisuc | | bisandroid | | bisce | | biswm) {window.location.href= ' Mobile station link '; } else {window.location= ' PC Station link ';}} Browserredirect (); </script>
JS get screen size jump different website according to size