Hi Guys
Just want a bit of quick advice. So far in my adventures with Javascript I've used form inputs to pass parameters to my javascript functions, using the input's VALUE field.
I'm wondering if it's possible to do the same with an anchor tag ? I'm guessing as there's no VALUE field, I can pass the paramter in the function call itself eg.
Eg. to pass the parameter value 22 to myFunction....
<a href="#" onClick="myFunction(22)">TEST</a>
Is this OK ?



Reply With Quote


Bookmarks