Hi,
I have a function like this to focus on textfields:
function focusEffect(element){
document.getElementById(element).focus();
}
I am using it to an element like this:
onmouseover = "focusEffect('field1')" onMouseout="focusEffect('')
I need to change this so that onmouseover event: "if not allready focused in some other textfield ---> focus on ID="field1".
and for the onMouseout event: "stay focused to the textfield that is currently active/selected"
Thanks for all answers.
I have a function like this to focus on textfields:
function focusEffect(element){
document.getElementById(element).focus();
}
I am using it to an element like this:
onmouseover = "focusEffect('field1')" onMouseout="focusEffect('')
I need to change this so that onmouseover event: "if not allready focused in some other textfield ---> focus on ID="field1".
and for the onMouseout event: "stay focused to the textfield that is currently active/selected"
Thanks for all answers.