C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




how to detect the visitor's browser in java script?


Posted Date: 27 Jun 2008      Total Responses: 2

Posted By: venkat       Member Level: Gold     Points: 1



Hi,

how to detect the visitor's browser in java script?Any one give me the code Plz...

Regards,
venkat.








Responses

Author: Programmer    27 Jun 2008Member Level: GoldRating:     Points: 3

In javascript,the url path can be accessed as,
document.location.href;
Call a javascript function on the page load event.Declare a variable and use the above code.Save the value in a text file.



Author: R.M.Phani Kumar    27 Jun 2008Member Level: SilverRating:     Points: 4

Hi use rge following code to detect the browser p[roperties

<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);
</script>
</body>



Post Reply
You must Sign In to post a response.
Next : JavaScrpit coding
Previous : javascript for get getbox value
Return to Discussion Forum
Post New Message
Category: JavaScript

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use