html <a href=""> ----- how do I specify a "do nothing" link?

rottenlemon

New member
I know it might sound like it's useless to some of you. What I want to do is something like:

<a href="#">

but I don't want the page to refresh (or open itself again) when the user clicks on the link. I want it to just sit there and do nothing when somebody clicks on it.

What can I put as the "address" in the <a href=""> in order to accomplish this?




if you're interested in the details.
I have a page with links containing php variables, and each link has a boolean property associated with it. If the boolean variable, lets say "doNothing", is equal to 1, then I want the link to do nothing when the user clicks on it. And then there's an Else condition as well if the "doNothing" variable is not equal to 1.
none of these work.... they still load my current or home page. i want it to Do NOTHING.
 
Back
Top