We accept safe and secure Credit Card and PayPal Payments!
 
Perl Scripts

All Count
Attachment Mailer
Build A FAQ Plus
Clock In Center
eBackup Automated
Easy Poll
eSurvey
Fetch a File
Form Maker
Mailing List Server
MySQL Mate
PDF Creation
QCart
Quick Fix
Speed Search
Task Manager
Traffic Pack
Upload Plus
Upload Gold
Upload Pro
Website Manager

 
Free Perl Downloads

Main Page
404 Alerter
AccessLog Viewer
Build A FAQ
eBackup
ErrorLog Viewer
eVars - Server Info
HT Pass Creator
Upload Lite
Website Manager

 
JavaScripts

Alert Boxes
Browser Sniffer
Check email
Generators
Sudoku
Window Maker
More...

 
Extra Utilities

Ascii Codes
Color Picker
Font Finder
HT Pass Creator
Meta Cloak
Meta Magic
Pano Zooms
SlideShow
Server Size

 
Online Tutorials

Glossary
HTML
JavaScript
MySQL
SSI
Build Traffic
Other

 
Miscellaneous

About Us
Graphics
Testimonials
Installations
Latest versions

 
Flash poll

Does your Website use Flash?






View all Polls

Purchase Easy Poll for your site, only $29

Run Surveys on your site. Click here
 
Global Warming

Your energy bills doubled in exchange for clean energy such as wind and solar power?






View all Polls

Run Polls on your site. Click here

Run Surveys on your site. Click here
 
  Store   Download   FAQs   Contact Us   Support   Custom Programming   Policies
The ultimate Survey and Quiz manager Survey your clients or employess with your own unique Surveys and Quizzes on your website.

JavaScripts :: Miscellaneous :: Browser Sniffer.

Browser detection made easy. The scripts below will detect Internet Explorer 4 and 5, Netscape 4 and 6 pre version 4 browsers and the Macintosh Platform, using the document's objects. Because Opera users can set their browser to be identified as Internet Explorer, Netscape or Opera, this script reads the UserAgent object and looks for the string "Opera". If the string "Opera" is not found in the UserAgent object, a negative one (-1) is returned. If the string is found, the character position of the string is returned. i.e. a number greater than or equal to zero (0), as zero is the position of the first character. To see what the UserAgent object returns, use this case sensitive code:
<script>
<!--

alert(navigator.userAgent);

// -->
</script>

Use this script to determine browser type. Note that IE5 is also IE6
<script>
<!--

// Browser sniffer. Written by PerlScriptsJavaScripts.com

v3 = 0; op = 0; ie4  = 0; ie5 = 0; nn4 = 0; nn6 = 0; 
isMac = 0; aol = 0;

if(document.images){
    if(navigator.userAgent.indexOf("Opera") != -1){
        op = 1;
    } else {
        if(navigator.userAgent.indexOf("AOL") != -1){
            aol = 1;
        } else {
            ie4 = (document.all && !document.getElementById);
            nn4 = (document.layers);
            ie5 = (document.all && document.getElementById);
            nn6 = (document.addEventListener);
        }
    }
} else {
    v3 = 1;	
}

if(navigator.userAgent.indexOf("Mac") != -1){
    isMac = 1;
}

// -->
</script>

Select All   De-select

Use this code to perform actions based on browser type.
<script>
<!--

if(op){ // do this
    alert("You are using Opera");
} 
if(ie4){ // do this
    alert("You are using Internet Explorer 4");
} 
if(ie5){ // do this
    alert("You are using Internet Explorer 5 or higher");
} 
if(nn4){ // do this
    alert("You are using Netscape 4");
} 
if(nn6){ // do this
    alert("You are using Netscape 6");
} 
if(aol){ // do this
    alert("You are using an AOL browser");
}
if(v3){ // do this
    alert("You are using a pre version 4 browser");
}

// -->
</script>
Select All   De-select
Speed Search our site

Search script for your site
Plesk Hosting
Linux servers with Plesk Control Panel, cgi-bin, crontab manager, Mysql, PHP and ASP.
Survey Software
Create your own fully customized web based Surveys. Only $39.00
Mailing list management made easy

Discounted Scripts
Subscribe to our periodial newsletter to receive special offers.

Global Warming
Your energy bills doubled in exchange for clean energy such as wind and solar power?






View all Polls

Run Polls on your site. Click here
About us | Contact us | Script FAQs | Script Support | Website Hosting | Our Policies | Store | Testimonials
Subscribe to our periodical newsletter and receive notifications of Perl Script updates, new CGI Script releases and Special discounted offers. Existing Subscribers log in here.    
HTML Plain text
©1999 - 2007 All content Copyright PerlScriptsJavaScripts.com Proudly hosted by LinuxHostingPlans.com