How To Add Java Script Browser Detector to Blogger

Posted by Lasantha Bandara on July 16th, 2009 File Under : gadget, java script0 Comment

1.Login to blogger dashboard-->Layout > Page Elements

2.Click on 'Add a Gadget'.

3.Select 'HTML/Javascript' and add the code given below and click save.

<script type="text/javascript">
var browser=navigator.appName;
var b_version=navigator.appVersion;
var version=parseFloat(b_version);

document.write("Browser name: "+ browser);
document.write("<br />");
document.write("Browser version: "+ version);

Now you are done.

File Under : gadget, java script

Related Posts

Leave a Reply