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="JavaS cript">
function ShowName1() {
alert "You were on Field1"
}
function ShowName2() {
alert "You were on Field1"
}
</script>
</head>
<body>
<input type="text" name="Field1" onblur="ShowNam e1()">
<input type="text" name="Field2" onblur="ShowNam e2()">
</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?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
functions so that I can just call one function on the onblur event of
the text field?
<html>
<head>
<script language="JavaS cript">
function ShowName1() {
alert "You were on Field1"
}
function ShowName2() {
alert "You were on Field1"
}
</script>
</head>
<body>
<input type="text" name="Field1" onblur="ShowNam e1()">
<input type="text" name="Field2" onblur="ShowNam e2()">
</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?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Comment