Team:Korea U Seoul/temp

From 2012.igem.org

(Difference between revisions)
Line 4: Line 4:
var Browser = {a : navigator.userAgent.toLowerCase()}
var Browser = {a : navigator.userAgent.toLowerCase()}
Browser = {chrome : Browser.a.indexOf('chrome') != -1}
Browser = {chrome : Browser.a.indexOf('chrome') != -1}
-
function whatKindOfBrowser() {if(Browser.chrome) {alert("hey");
+
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:whatKindOfBrowser();" />
</body>
</body>
</html>
</html>

Revision as of 17:20, 26 September 2012