Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Focus problem with Firefox


  • From: robert at edico.si (robert)
  • Subject: [Javascript] Focus problem with Firefox
  • Date: Mon Jan 22 20:02:11 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: https://lists.LaTech.edu/pipermail/javascript/attachments/20070123/a657a204/attachment.html