23.5.11

Javascript Browse

Bagi sobat yg suka menampilkan keterangan browse pada blognya, ini semoga bisa menjadi alternatif jalan. Add a Gadget ► HTML/Javascript. Hasil yg tampak akan seperti berikut:

Browser Name: Mozilla
Browser Name: Netscape
Platform: Win32
Cookies Enabled: true
Browser Version: 5.0 (Windows)
User-agent header: Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0
Tertarik!

<div id="browse"></div>
<script type="text/javascript">

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

document.getElementById("browse").innerHTML=txt;

</script>

Loading...
Loading...