[Javascript] global variables thru OnClick event

Peter-Paul Koch gassinaumasis at hotmail.com
Thu Sep 5 04:17:59 CDT 2002


>I'm setting some variables thru OnClick event (Onclick="var test=12"). But 
>I
>can't access this variable. So how can I set global variables thru Onclik
>event?

Onclick="test=12"

'var' means: make it a local variable.

ppk

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com




More information about the Javascript mailing list