0

the code should be appear in browser OUTPUT like

Browser Name: Netscape

Browser Version: 5.0 Platform / operating system: Win32/linux/mac

1
  • It is rare that you actually need this information -- what are you trying to do? Commented Apr 17, 2014 at 6:01

1 Answer 1

1

You cant get in CSS but can get in JavaScript

http://www.w3schools.com/js/js_window_navigator.asp

<script>

txt = "<p>Browser CodeName: " + navigator.appCodeName + "</p>";
txt+= "<p>Browser Name: " + navigator.appName + "</p>";
txt+= "<p>Browser Version: " + navigator.appVersion + "</p>";
txt+= "<p>Cookies Enabled: " + navigator.cookieEnabled + "</p>";
txt+= "<p>Platform: " + navigator.platform + "</p>";
txt+= "<p>User-agent header: " + navigator.userAgent + "</p>";
txt+= "<p>User-agent language: " + navigator.systemLanguage + "</p>";

console.log(txt);

</script>
Sign up to request clarification or add additional context in comments.

2 Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.