L
Luis
Is there a way to combine the following ShowName()
functions so that I can just call one function on the onblur event of
the text field?
<html>
<head>
<script language="JavaScript">
function ShowName1() {
alert "You were on Field1"
}
function ShowName2() {
alert "You were on Field1"
}
</script>
</head>
<body>
<input type="text" name="Field1" onblur="ShowName1()">
<input type="text" name="Field2" onblur="ShowName2()">
</body>
</html>
My first thought is to establish which field had the focus and then pass
that field name to the function. But how do I determine which field had
the focus?
functions so that I can just call one function on the onblur event of
the text field?
<html>
<head>
<script language="JavaScript">
function ShowName1() {
alert "You were on Field1"
}
function ShowName2() {
alert "You were on Field1"
}
</script>
</head>
<body>
<input type="text" name="Field1" onblur="ShowName1()">
<input type="text" name="Field2" onblur="ShowName2()">
</body>
</html>
My first thought is to establish which field had the focus and then pass
that field name to the function. But how do I determine which field had
the focus?