Hi

/* It's Friday - hurrah! */

PROBLEM: Javascript focus()...puts cursor at START of space-filled
field in IE 6, but at END of space-filled in Firefox 2.

Any way (without changing the field value to be "") to get the cursor
to appear at the start of the field in Firefox?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd";>
<html>
<head>
   <title>Focus bungle</title>
   <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
   <script type="text/javascript" >
      function init () {
          alert("focusing...");
         document.getElementById('fld1').focus();
      }
  </script>
</head>

<body onload="init()">
   <form id="form1" action="" onsubmit="return false;">
      <div>
         <input type="text" title="fld1" value="       "  id="fld1"
name="fld1" size="025" maxlength="025" >
      </div>
   </form>
</body>
</html>

Cheers,

Si


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to