Team:Korea U Seoul/temp

From 2012.igem.org

(Difference between revisions)
Line 2: Line 2:
<head>
<head>
<script type="text/javascript">
<script type="text/javascript">
-
var UserAgent = navigator.userAgent;
+
var Browser = { a:navigator.userAgent.toLowerCase()}
-
if (UserAgent.match(/SAMSUNG|Samsung) != null)
+
Browser={chrome : Browser.a.indexOF('chrome') !=-1}
-
{
+
function whatKindOfBrowser() { if(Browser.chrome) {alert("hey");
-
  location.href = "http://smartblueberry.com";
+
-
}
+
-
else
+
-
{
+
-
alert("Web");
+
}
}
</script>
</script>
-
 
</head>
</head>
<body>
<body>
-
he
+
<input type="button" value="브라우저 체크" onclick="javasxxript:whatKindOfBrowser();"/>
</body>
</body>
</html>
</html>

Revision as of 17:08, 26 September 2012