WEB_Programming
브라우저 검색
neokido
2008. 11. 28. 15:01
<script langauge="javascript">
var BrowserDetect = {
isFirefox : function() {
if(navigator.appName.indexOf('Netscape') >= 0) return true;
return false;
},
isExplorer : function() {
if(navigator.appName.indexOf('Explorer') >= 0) return true;
return false;
}
};
if(BrowserDetect.isFirefox()) {
alert('파이어폭스');
}
if(BrowserDetect.isExplorer()) {
alert('익스플로러');
}
</script>
var BrowserDetect = {
isFirefox : function() {
if(navigator.appName.indexOf('Netscape') >= 0) return true;
return false;
},
isExplorer : function() {
if(navigator.appName.indexOf('Explorer') >= 0) return true;
return false;
}
};
if(BrowserDetect.isFirefox()) {
alert('파이어폭스');
}
if(BrowserDetect.isExplorer()) {
alert('익스플로러');
}
</script>