rendered paste body<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN/" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>.NET Framework 2.0</title>
<script>
function cc(elem, min, max)
{
var uInput = elem.getAttribute("value");
if(uInput.length >= min && uInput.length <= max)
{
alert("Please");
}
else
{
alert("Please enter between " +min+ " and " +max+ " characters");
elem.focus();
return false;
}
}
</script>
</head>
<body>
<input id="bob" value="five" type="text" />
<a onclick="cc(document.getElementById('bob'),1,10)">w</a>
</body>
</html>