Variable

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello

I want to add a variable to my web page

When the user click on the link : CATS ---> CAT will be assigned to a
variable
When the user click on the link : DOGS ---> DOG will be assigned to a
variable

After in my web page I have to use this variable.

href = "Animale?A=" ???

I tried to made the follwing

<a img name ="CAT1" href ="/CAT1" onclick="AfficheA(This)" <%Anim="CAT"%>>

But it didn't work

is it possible to do? can I declare a Javascript or ASP variable, assign a
value every time the user click on the link and use it after on my link

thanks

.



Relevant Pages

  • Help with Javascript: naming variables using other variables
    ... Is there a way to declare a variable name using other variables in ... In PHP, ... Is there a similar method in Javascript? ... Prev by Date: ...
    (alt.html)
  • Re: Another try at Pythons selfishness
    ... newbie-friendly: ... If I declare a member ... Python (I made attempts with C++ that were moderately ... By contrast, Javascript seems positively obtuse. ...
    (comp.lang.python)
  • Re: Trouble putting Javascript in an anchor tag
    ... browser attempts to load the Javascript in the address bar and the ... Mozilla.org JavaScript 1.8.2 (no syntax error), ... That you can declare it, ...
    (comp.lang.javascript)
  • Re: Baffling array problem
    ... Initialising is when you declare the variable and ... can actually declare variables anywhere within the intended scope ... Please do not present a opinion on a subject as the opinion of a supposed ... Prototype.js was written by people who don't know javascript for people ...
    (comp.lang.javascript)
  • Re: Use of var in FOR initialiser
    ... > Well with JavaScript any var declaration is "hoisted" to the beginning ... and that declaring variables is better than not to declare them at all (see ... watch for that I declare a variable only once per execution context; ...
    (comp.lang.javascript)