Team:Korea U Seoul/temp

From 2012.igem.org

(Difference between revisions)
 
(5 intermediate revisions not shown)
Line 2: Line 2:
<head>
<head>
<script type="text/javascript">
<script type="text/javascript">
-
function getUserAgent() {
+
var Browser = {a : navigator.userAgent}
-
      userAgent = new String(navigator.userAgent);
+
function whatTheFuckIsThis(){
-
      var versionStr = "none";
+
userAgent = new String(navigator.userAgent);
-
  if(userAgent.search("Mozilla/4.0") > -1) {
+
if(userAgent.search("iPhone")>-1){
-
      versionStr = "Mozilla/4.0";
+
alert('Welcome iPhone User!');
-
      alert(versionStr);
+
window.location = "https://2012.igem.org/Team:Korea_U_Seoul/Main";
-
  } else {
+
}
-
      versionStr = "What is yout UA?";
+
-
      alert(versionStr);
+
-
  }
+
}
}
-
 
</script>
</script>
</head>
</head>
-
<body onload="getUserAgent();">
+
<body>
-
    Hi! Your Web Browser Information:
+
<input type="button" value="브라우저 체크" onclick="javascript:whatTheFuckIsThis();" />
</body>
</body>
</html>
</html>

Latest revision as of 18:01, 26 September 2012