[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 771
  • Last Modified:

Retrieving values of a text box

  I have an input box in a form with the name having a dot in it,;i.e; a name like "abc.txt". I want to get the value of this input box in a javascript function. How do I do it?
Thanx in advance,
1 Solution

at first i have a hard time how to find a solution for your problem but now i am proud to tell you that i got it.

just copy and past the code below.
i am using an IE browser i don't know if it works with netscape.


function showValue()
sValue = document.all["abc.txt"].value ;
alert( sValue ) ;


<P>Name: <INPUT name="abc.txt"></P>
<P><INPUT name="btnClick" type=button value="Click Me" onClick="showValue()"></P>


Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now