function
funNameBrowser() {
var
ua = navigator.userAgent;
if
(ua.search(/MSIE/) > -1) {
return
'Internet Explorer'
;
}
else
(ua.search(/Firefox/) > -1) {
'Firefox'
(ua.search(/Opera/) > -1) {
'Opera'
(ua.search(/Chrome/) > -1) {
'Google Chrome'
(ua.search(/Safari/) > -1) {
'Safari'
(ua.search(/Konqueror/) > -1) {
'Konqueror'
(ua.search(/Iceweasel/) > -1) {
'Debian Iceweasel'
(ua.search(/SeaMonkey/) > -1) {
'SeaMonkey'
(ua.search(/Gecko/) > -1) {
'Gecko'
{
'Search Bot'
funMake() {
document.write(funNameBrowser());
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
script
src
"js/script.js"
></
</
body
funMake();