Syndicate content

jquery

Javascript: Preventing Default Event Actions

Sometimes, browsers respond to user interactions in bothersome ways. Imagine a scenario where you have a list of links, all bound to Javascript events which toggle the CSS display value of different div elements. Or maybe you're making Ajax calls for a tabbed content area or the like. Perhaps the code for the links or tabs or whatever looks like this...