That's probably because of the way your link is setup, there are several ways to deal with this if it is the issue. I like some of them, here's a fairly good one, change the HTML to:
Code:
<a href = "javascript:next();" id = "next" onClick = "processClick(1, 1);return false;"><span>CSS2</span></a>
And change the function update to:
Code:
var next = document.getElementById('next');
next.onclick = function(){processClick(1, 3);return false;};
Notes: At this point, the href value can now be anything you like because it will not fire when javascript is enabled. However, using a phony javascript call for the href will prevent it from firing when javascript is disabled. The phony call, if syntactically correct, may also be descriptive - a good idea, as it will show in the status bar on hover in many browsers. Alternatively, the href may be to a page - a fall back page for non-javascript users. The choice depends upon what you are trying to do, and upon what would be most helpful to your users, the javascript enabled and the javascript disabled.
Bookmarks