Re: Get value from button
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Get value from button

From: Daniel Kirsch <Iwillnotread_daniel@gmx.de>
Date: Tue Jun 21 2005 - 11:33:43 CEST

bonAveo.net wrote:
> var url = link + adress;

Once again.
"link" and "adress" are object references in this case. If they
reference a button, you need to get their values:

   var url = link.value + adress.value;

However I still don't see any element with id="addUrl" so

   var link = document.getElement("addUrl");

will probably not even contain a valid reference.

Daniel
Received on Mon Oct 24 02:12:56 2005