[Javascript] Focus problem with Firefox

robert robert at edico.si
Mon Jan 22 20:01:30 CST 2007


I have problem with this piece of code in Mozzila Firefox (Ver. 1.5.0.9). IE
works as expected. The problem is, that after leaving first input field, the
focus does change to box3, but the cursor is not visible. Any suggestions?

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>

<head>

<script LANGUAGE="JavaScript">

function change_focus()

{

//document.getElementById('box3').focus();

document.myform.box3.focus();

}

</script>

</head>

<body>

 

<form name='myform'>

Box 1: <input id='box1' type='text' name='box1'
onBlur='change_focus();'><br>

Box 2: <input id='box2' type='text' name='box2'><br>

Box 3: <input id='box3' type='text' name='box3'><br>

</form>

</html>

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20070123/a657a204/attachment.htm>


More information about the Javascript mailing list