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>
Store, retrieve and delete cookies using JavaScript. Categories : Java Script , Cookies , Beginner Guides , Cookies Newbie Notes #9 - Hyperlinking a post Categories : PHP , Java Script , HTML and PHP , Beginner Guides Easy alert box pop-up function Categories : PHP , Java Script , Beginner Guides Form Processing : with alert Highlight field name which is not filled by user Categories : Java Script , Form Processing , Data Validation , Beginner Guides , Web Design Simple Javascript CSS Digital Clock Categories : Java Script , Date Time , CSS , Beginner Guides , Web Design Show or Hide your Content using Javascript Categories : Java Script , HTML , CSS , Beginner Guides PHP and javascript mouseover, mouseout, and mousedown events Categories : PHP , Java Script , Form Processing , Beginner Guides Run a function once per session. Categories : Beginner Guides , Java Script , Cookies Show and Hide Tables, Table Rows, Form Elements Etc. Categories : Java Script , Beginner Guides 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 Ajax - Perform a simple server side request and update the current HTML page. Categories : AJAX , Java Script , Beginner Guides Fancy Quick Access Navigation Link Categories : Java Script , Navigation , User Interface , DHTML , 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 Bouncing Marquee at Status Bar Categories : Java Script , HTML , Browsers