<html>
<head>
<script language="JavaScript">
function getstring(str)
{
alert(str);
}
</script>
</head>
<body>
<input type="text" name="text1" onblur="getstring(this.value)">
</body>
</html>
<head>
<script language="JavaScript">
function getstring(str)
{
alert(str);
}
</script>
</head>
<body>
<input type="text" name="text1" onblur="getstring(this.value)">
</body>
</html>