View Full Version : Same link - same function - different arguments

04-04-2003, 01:43 PM

I have a link with a function which the first time You click needs to activate the function and use argument - X - , but the second time You click it needs to activate the same function and using argument - Y -, and after again with - X - and so on, like

1. time: onClick="function1('X');"

2. time: onClick="function1('Y');"

3. time: onClick="function1('X');"

And so on, in other words toggle between the arguments.

Has somebody experience with this?

Thanks for Your effort,

Graeme Hackston
04-04-2003, 01:49 PM
Can we see the function

04-04-2003, 02:02 PM

The Toggle Button Example at the bottom of this (http://home.cogeco.ca/~ve3ll/jstutor6.htm) page might give you some ideas... (u can add events to each toggle mode).


04-04-2003, 02:58 PM

Good example, thanks!


EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum