WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Submit Site
Forex Trading Online forex trading platform

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Get your browser details using javascript
Categories : Java Script, Beginner Guides, Browsers Click here to Update Your Picture
Rupali Gulande
Date : Feb 06th 2008
Grade : 5 of 5 (graded 1 times)
Viewed : 2418
File : 4758.zip
Images : Image 1 , Image 2
Search : More code by Rupali Gulande
Action : Grade This Code Example
Tools : My Examples List

  Submit your own code examples 
 

Here is a small piece of code which will give you your browser details such as...
current resolution
maximum resolution
browser name
browser version:
color depth
code name
platform
java status

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Browser Details...</title>
<script language="javascript" type="text/javascript">
function details() {
window.onerror=null;
document.frmDetails.navigator.value = navigator.appName;
document.frmDetails.version.value = navigator.appVersion;
document.frmDetails.colordepth.value = window.screen.colorDepth;
document.frmDetails.width.value = window.screen.width;
document.frmDetails.height.value = window.screen.height;
document.frmDetails.maxwidth.value = window.screen.availWidth;
document.frmDetails.maxheight.value = window.screen.availHeight;
document.frmDetails.codename.value = navigator.appCodeName;
document.frmDetails.platform.value = navigator.platform;
if (navigator.javaEnabled() < 1) document.frmDetails.java.value="No";
if (navigator.javaEnabled() == 1) document.frmDetails.java.value="Yes";

}

</script>
</head>

<body onload="details();">


<form name=frmDetails>
<table border=1 width=499>

<tr>
<td width="133">current resolution:</td>
<td width="350" align=center><input type=text size=4 maxlength=4 name=width>
x <input type=text size=4 maxlength=4 name=height></td>
</tr>

<tr>
<td>
browser:</td>
<td align=center><input type=text  name=navigator></td>
</tr>
<tr>
<td>
max resolution:</td>
<td align=center><input type=text size=4 maxlength=4 name=maxwidth>
x <input type=text size=4 maxlength=4 name=maxheight></td>
</tr>

<tr>
<td>
version:</td>
<td align=center><input type=text  name=version></td>
</tr>

<tr>
<td>
color depth:</td>
<td align=center><input type=text size=2 maxlength=2 name=colordepth> bit</td>
</tr>

<tr>
<td>
code name:</td>
<td align=center><input type=text  name=codename></td>
</tr>

<tr>
<td>
platform:</td>
<td align=center><input type=text  name=platform></td>
</tr>

<tr>
<td>
java enabled:</td>
<td align=center><input type=text size=3 maxlength=3 name=java></td>
</tr>

<tr>
<td colspan=2 align=center>
<input type=button name=again value="Refresh?" onclick="details();"></td>
</tr>
</table>
</form>

</body>
</html>



PHP and javascript mouseover, mouseout, and mousedown events
Categories : PHP, Java Script, Form Processing, Beginner Guides
Flash Your Message at Status Bar
Categories : Java Script, Browsers
Easy alert box pop-up function
Categories : PHP, Java Script, Beginner Guides
Store, retrieve and delete cookies using JavaScript.
Categories : Java Script, Cookies, Beginner Guides, Cookies
Simple Javascript CSS Digital Clock
Categories : Java Script, Date Time, CSS, Beginner Guides, Web Design
Form Processing : with alert Highlight field name which is not filled by user
Categories : Java Script, Form Processing, Data Validation, Beginner Guides, Web Design
Newbie Notes #9 - Hyperlinking a post
Categories : PHP, Java Script, HTML and PHP, Beginner Guides
Run a function once per session.
Categories : Beginner Guides, Java Script, Cookies
Ajax - Perform a simple server side request and update the current HTML page.
Categories : AJAX, Java Script, Beginner Guides
Local Time clock and Server time usign PHP and JavaScript
Categories : PHP, Java Script, Date Time, Beginner Guides
Validating a URL with JavaScript RegExp
Categories : Java Script, Data Validation, Beginner Guides
Changing the Style of form objects using the JavaScript OnClick method.
Categories : Java Script, Form Processing, Beginner Guides, CSS
Show hide table rows to make dynamic forms
Categories : Beginner Guides, Java Script, Form Processing, HTTP
Conditional Check - a script that allows a user to submit a form only if the user check a checkbox.
Categories : HTML, Java Script, Form Processing, Beginner Guides
Show and Hide Tables, Table Rows, Form Elements Etc.
Categories : Java Script, Beginner Guides