Tag Archives: javascript

Javascript Functions optional parameters

Ok, you want to create a function to be used several times (well, isnt that the main purpose of them?), but, depending on the call, you can have 1 argument or several. How do you go about doing it? Enter the world of optional parameter functions. Or something like that…after the jump. Here are three… Read More »

Prevent page from scrolling to top after link click

Imagine you have a bunch of links, maybe images, or anything else, that dont actually have a url to jump to but instead trigger some awesome javascript that do amazing things somewhere else, or just highlight the icons/images as selector of whatever. If you use links like When you click on these links, they do… Read More »

Remove item from array in jQuery/javascript

Extremely simple problem with a million solutions. These are just a couple of ways to do it. Go learn after the jump.