Domain Discussion Board

Go Back   Domain Discussion Board > Web Hosting & Web Design > Scripts

 
Reply
 
LinkBack Thread Tools Display Modes
Getting Browser Info Of Your Users
Old
  (#1 (permalink))
bbalegere
Executive Member
bbalegere is an unknown quantity at this point
 
bbalegere's Avatar
 
Status: Offline
Posts: 305
Points: 50.3
Bank: 470.3
Total Points: 520.6
Donate
Join Date: May 2006
Rep Power: 0
Getting Browser Info Of Your Users - 10-01-2006, 10:26 PM

This is a very neat snippet to show your users their browser details
it's also possiable that you can get the users ip and show it to them
but i prefer doing that in php.


Code:
<html> <head> <title>Show Browser Info</title> <script language=JavaScript> function browserinfo(){ with(document){ write('<br /><b>Name: </b>' + navigator.appName); write('<br /><b>Code Name: </b>' + navigator.appCodeName); write('<br /><b>Version: </b>' + navigator.appVersion.substring(0,4)); write('<br /><b>Java Enabled: </b>' + navigator.javaEnabled()); write('<br /><b>Platform: </b>' + navigator.platform); } } </script> </head> <body onLoad="browserinfo();"> </body> </html> // THE CODE WILL OUTPUT SOMETHING SIMILAR TO THIS // Name: Microsoft Internet Explorer // Code Name: Mozilla // Version: 4.0 // Java Enabled: true // Platform: Win32
please add comments if you like it


LiveTV.ws - Live Internet TV
   
Reply With Quote
Re: Getting Browser Info Of Your Users
Old
  (#2 (permalink))
bearruler
Junior Member
bearruler is on a distinguished road
 
Status: Offline
Posts: 12
Points: 555.6
Bank: 0.0
Total Points: 555.6
Donate
Join Date: Oct 2006
Location: Delaware
Rep Power: 0
Re: Getting Browser Info Of Your Users - 10-07-2006, 10:39 AM

Code:
<?
$info=get_browser();
$show=array("parent", "browser", "version", "javaapplets", "platform");
foreach ($show as $item) echo "<b>$show</b>: ".$info[$item]."<br> \n";
?>
Basicly, add elements to the array $show and it displays their value.


Bear

Last edited by bearruler : 10-16-2006 at 12:51 PM.
   
Reply With Quote
Sponsored Links
Re: Getting Browser Info Of Your Users
Old
  (#3 (permalink))
sambosch
Junior Member
sambosch is on a distinguished road
 
Status: Offline
Posts: 9
Points: 365.4
Bank: 0.0
Total Points: 365.4
Donate
Join Date: Oct 2006
Rep Power: 0
Re: Getting Browser Info Of Your Users - 10-10-2006, 09:31 AM

Thanks bearruler your post was helpful. I was displaying the
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040803

part on my site. Now i can display the selective details.
   
Reply With Quote
Re: Getting Browser Info Of Your Users
Old
  (#4 (permalink))
SugarBlush
SugarBlush is an unknown quantity at this point
 
Status: Offline
Posts: 758
Points: 40.3
Bank: 1,450.4
Total Points: 1,490.7
Donate
Join Date: Jul 2006
Location: Malaysia
Rep Power: 0
Re: Getting Browser Info Of Your Users - 10-29-2006, 05:06 AM

cool script! Will we be able to see our surfers browser info or they can only see their own?


Get all cool stuff here!
   
Reply With Quote
Re: Getting Browser Info Of Your Users
Old
  (#5 (permalink))
ittotal
Banned
ittotal is on a distinguished road
 
Status: Offline
Posts: 6
Points: 56.0
Bank: 0.0
Total Points: 56.0
Donate
Join Date: Oct 2006
Rep Power: 0
Re: Getting Browser Info Of Your Users - 10-29-2006, 09:22 AM

Thanks .... what else can I say. But I really didnt require that
   
Reply With Quote
Re: Getting Browser Info Of Your Users
Old
  (#6 (permalink))
pacoste2
Senior Member
pacoste2 is an unknown quantity at this point
 
Status: Offline
Posts: 204
Points: 124.8
Bank: 589.2
Total Points: 714.0
Donate
Join Date: Nov 2006
Rep Power: 0
Re: Getting Browser Info Of Your Users - 11-01-2006, 12:56 PM

Bearruler thanks for that amazing script. I really didn't knew hot to do something like that. Thanks again
   
Reply With Quote
Re: Getting Browser Info Of Your Users
Old
  (#7 (permalink))
SlaDyR
Junior Member
SlaDyR is on a distinguished road
 
Status: Offline
Posts: 16
Points: 100.0
Bank: 0.0
Total Points: 100.0
Donate
Join Date: Nov 2006
Rep Power: 0
Re: Getting Browser Info Of Your Users - 11-07-2006, 08:49 AM

Nice script, thanks, I'll use it
   
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 0.1
Points Per Thread: 15.0
Points Per Reply: 5.0


Similar Threads
Thread Thread Starter Forum Replies Last Post
is there any sites for free .com klazzarus Domain Name Discussion 103 06-13-2008 11:08 PM
Yahoo Messenger allows users to share services canadianus Chit-Chat Area - Internet Related 8 01-10-2007 09:54 AM
What does your browser reveal about your personality? giggles Chit-Chat Area - Internet Related 1 08-24-2006 08:31 AM
Selling Gmail Hosted Domain - Quick Cheap Sale - PR2 - 100 users w/ 2gb each weblord Domain Names For Sale 7 06-14-2006 12:50 PM


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 ©2007, Crawlability, Inc.