<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Get Screen Resolution using JavaScript</title>
<script type="text/javascript" language="javascript">
function GetResolution(){
document.getElementById("txtWidth").value = screen.width;
document.getElementById("txtHight").value = screen.height;
}
</script>
</head>
<body onload="GetResolution();">
<table>
<tr><td align="center" colspan="2">
<b><span style="color: #990000;">Your
Screen Resolution </span></b></td></tr>
<tr>
<td>Width :</td>
<td valign="middle"><input
type="text"
size="5"
name="txtWidth"
id="txtWidth">px</td>
</tr>
<tr>
<td>Height :</td>
<td valign="middle"><input
type="text"
size="5"
name="txtHight"
id="txtHight">px</td>
</tr>
</table>
</body>
</html>
|
|
||||||
|
If you enjoyed this post, please support the blog below. It's FREE! Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. |
|||
Subscribe by RSS
Subscribe by Email
|
|||
|
|
|
Subscribe by RSS
Subscribe by Email
1 comments :
good one..