Javascript

Create a modal window in Javascript and CSS

Posted on Wednesday February 16, 2011 / by Eric Potvin

Simple code to implement a modal window using CSS and Javascript

Create an alias to document getelementbyid in JavaScript

Posted on Wednesday March 23, 2011 / by Eric Potvin

Simple way to implement a redundant call to document.getElementById

How to disabled the enter key in javascript in a web form

Posted on Monday May 09, 2011 / by Eric Potvin

Prevent a form to be submitted using only the submit button

Input Form Field Javascript Events

Posted on Tuesday July 03, 2012 / by Eric Potvin

Filtering data on input fields using oncopy, onpaste, oncut to prevent copy and paste

iPhone, iPad, iPod Detection in Javascript

Posted on Friday February 25, 2011 / by Eric Potvin

How to redirect iPhone, iPad or iPod using Javascript

Short filename with extension using javascript

Posted on Sunday March 04, 2012 / by Eric Potvin

Truncate the filename without losing the extension in JavaScript