Mendeteksi browser

Demo :




Cara membuatnya

Dari Dashboard >> Design >> Edit HTML.


Penempatannya
dibawah <body>
........
diatas </body>

<script type='text/javascript'>
//<![CDATA[

/*
Mendeteksi browser (http://www.javascriptkit.com/script/script2/browserkind.shtml)
Parsed and Publish on Blogspot (http://nanoyulianto.blogspot.com/)
*/

if (document.all)
var version=/MSIE \d+.\d+/

if (!document.all)
document.write(navigator.appName+" "+navigator.userAgent)
else
document.write(navigator.appName+" "+navigator.appVersion.match(version))

//]]>
</script>



Credit : JavaScript Kit

Alhamdulillah

0 comments:


Posting Komentar


Creative Commons License
Mendeteksi browser by Nano Yulianto is licensed under a Creative Commons Attribution 3.0 Unported License.
Based on a work at http://nanoyulianto.blogspot.com/2011/01/mendeteksi-browser.html.
Permissions beyond the scope of this license may be available at http://nanoyulianto.blogspot.com/.