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

Get value from button

From: bonAveo.net <pusulv@gmail.com>
Date: Mon Jun 20 2005 - 15:21:48 CEST

Hi,
I got 3 buttons with 3 different values...

> <input type="image" src="search.png" value="http://jigsaw.w3.org/css-validator/validator?usermedium=all&uri=" onclick="addUrl(this.value)">
> <input type="image" src="search.png" value="http://validator.w3.org/check?uri=" onclick="addUrl(this.value)">
> <input type="image" src="search.png" value="http://validator.w3.org/checklink?hide_redirects=on&hide_type=all&recursive=on&depth=1&check=Check&uri=" onclick="addUrl(this.value)">

...and I want the value from the button pressed into this:

> function goTo() {
>
> var adress = document.getElementById("seee");
> var link = document.getElement("addUrl");
>
> var url = link + adress;
> (...something, something...)
> }

What have I done wrong?
Received on Mon Oct 24 02:12:55 2005