[Javascript] Error: missing name after . operator

Anthony Ettinger apwebdesign at yahoo.com
Fri Oct 28 05:29:00 CDT 2005


<input id="interface" name="interface" type="hidden"/>

obj = document.getElementById("interface");
alert(obj.value);

--- shashidhar.vutukuru at wipro.com wrote:

> 
> Hi All,
> 
> I have a hidden field
> 
> <input type="hidden" name="interface">
> 
> When I try and get its value using
> 
>     document.forms[0].interface.value;
> 
> I get this error:
> 
>     "Error: missing name after . operator"
> 
> This happens only in firefox and Netscape but not in
> IE.
> Is interface an keyword.. and should it  not be
> used?
> then why does not it throw an error in IE also..?
> 
> Please let me know your thoughts on this.
> Thanks in advance.
> 
> Regards,
> Shashidhar V
> 
> 
> 
> 
> 
> Confidentiality Notice
> 
> The information contained in this electronic message
> and any attachments to this message are intended
> for the exclusive use of the addressee(s) and may
> contain confidential or privileged information. If
> you are not the intended recipient, please notify
> the sender at Wipro or Mailadmin at wipro.com
> immediately
> and destroy all copies of this message and any
attachments.>
_______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> 


Anthony Ettinger
ph: (408) 656-2473
web: http://www.apwebdesign.com



More information about the Javascript mailing list