Re: set form item value with javascript
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: set form item value with javascript

From: ASM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid>
Date: Thu Jul 28 2005 - 01:32:28 CEST

Richard Cornford wrote:
> ASM wrote:
> <snip>
>
>><a href="image3clickedOn.html"><img name="image3" src="image3.gif"
>> alt="Submit button" title="Click to submit"
>>onclick="imageClickedOn.value=this.name;return false;">
>> <input type="hidden" name="imageClickedOn" value="none">
>
>
> Relying on the browser providing internally generated intrinsic event
> handling functions with an augmented scope chain is risky in any
> circumstances. Making that assumption about handlers on IMG elements is
> particularly risky.

I didn't test it, but reading following,
I notice I did confuse and surely that will not work
this onclick is only for forms elements

> But this whole question is probably best addressed with <input
> type="image"> and getting rid of the scripting entirly.

So : how to do without DOM and with a link available if JS disabled ?

-- 
Stephane Moriaux et son [moins] vieux Mac
Received on Tue Oct 18 03:02:37 2005