[Javascript] onFocus getting error.

Craig Gardner CGardner at JohnBurnham.com
Mon Jan 27 13:15:57 CST 2003


Here's the function call:
---function call ---
<input type='textarea' onFocus='javascript:gotMe(this, 6);'>
 
Here's the function:
--- function code ---
   function gotMe(current, length)
   {
    current.maxLength = length;
    current.select;
   }
 
The error that I'm getting says that there's an error on the function call
line:
--- error message ---
Line:    112
Char:    1
Error:    Object expected
Code:    0
 
Does anyone have any ideas?  The only way that I've found that fixes this
problem is getting rid of the onFocus part.  Even commenting the entire
function body doesn't fix it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20030127/aa75325a/attachment.htm>


More information about the Javascript mailing list