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: Randy Webb <HikksNotAtHome@aol.com>
Date: Tue Jun 21 2005 - 15:46:16 CEST

Daniel Kirsch wrote:
> 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.

Even if addUrl existed, document.getElement(anything) wouldnt contain a
valid reference unless getElement was a author-defined function.
document.getElementByID('addUrl') might contain a valid reference though.

-- 
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Received on Tue Oct 18 02:46:57 2005