This may not be specific enough to answer but I’m hoping there is some insight. I’ve been having a problem with javascript that I don’t understand. Essentially, which I use onClick() to change the style of some element, the change happens briefly (a fraction of a second) and reverts back to the previous state. What could cause such a thing? The web page I’m working on has become pretty big so I don’t want to post it and expect you to sort through lots of markup. I’m hoping somebody will recognize this as a common mistake or at least have an idea of where to look for the source of the problem.
This may not be specific enough to answer but I’m hoping there is some
Share
I’d say the page is reloaded after the style is changed, check the
hrefin your link, are you preventing the default behavior?