Team:Korea U Seoul/temp

From 2012.igem.org

(Difference between revisions)
Line 1: Line 1:
-
<html>
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 +
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<head>
 +
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 +
<title>Untitled Document</title>
<script type="text/javascript">
<script type="text/javascript">
-
var Browser = {a : navigator.userAgent.toLowerCase()}
+
var Browser = {a : navigator.userAgent}
-
Browser = {chrome : Browser.a.indexOf('chrome') != -1}
+
function whatIsThis(){alert(Browser.a);}
-
function whatKindOfBrowser() {if (Browser.chrome) {alert("hey");}
+
//Browser = {chrome : Browser.a.indexOf('chrome') != -1}
-
}
+
//function whatKindOfBrowser() {if (Browser.chrome) {alert("hey");}
 +
//}
</script>
</script>
</head>
</head>
<body>
<body>
-
<input type="button" value="브라우저 체크" onclick="javascript:whatKindOfBrowser();" />
+
<input type="button" value="브라우저 체크" onclick="javascript:whatIsThis();" />
</body>
</body>
</html>
</html>

Revision as of 17:24, 26 September 2012

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Untitled Document