JSLoader, handler for onLoad and onReady events

I’ve made a little code snippet to handle the window.onload event the right way, and thanks to some feedback, people said that it would be even better if it could handle the DOMContentLoaded event.
Read More »


Email Verification JavaScript

Just a little code snippet to verify an email in JavaScript.

The function:

<script type="text/javascript">
    var result = emailVerification("insert email here");
    function emailVerification(email){
        var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
        if (!filter.test(email.value)) {
            return false;
        } else {
            return true;

Read More »