Events – why something.changed instead of something.on(“changed”, ….

25 July 2014 | Category: JavaScript | Comments (0)

Whenever I was using custom events there were:

something.on("changed", function myonchange() {

However, now I start[……]

Read more

Generate dynamically iframe and it’s content

2 April 2014 | Category: Browsers, JavaScript | Comments (2)

Let’s say you want to generate dynamically iframe and instead of point to external source:

var iframe = document.createElement('ifr[......]

Read more

JavaScript fast reverse table rows

7 March 2014 | Category: JavaScript | Comments (0)

So, you want to fast revers rows in table. There is probably millions of possible solutions, but here I’ll preset my approach. Here is the code:


Read more

JavaScript, generate accessible table of content (TOC)

22 February 2014 | Category: Accessibility, JavaScript | Comments (0)

I’ve created simple and accessible script for generating table of content based on HTML header elements. Try example. The source code you can find on[……]

Read more

contenteditable and prevent from going to new line using ENTER key

3 February 2014 | Category: Browsers, JavaScript | Comments (0)

Let’s say we have a simple div HTML element with attribute contenteditable. Sometimes we want to observe ENTER key and prevent cursor to go to new lin[……]

Read more

JS Tip: How to check if specified HTML element is supported by the browser

11 November 2013 | Category: Browsers, JavaScript | Comments (0)

To check if browser support specified HTML element you can use:

function isHTMLElementSupported(elm) {
    return ([......]

Read more

How to check if browser supports cookies using client-side technique

29 September 2013 | Category: Browsers, JavaScript | Comments (0)


There is at least (which I know) two methods to find out if cookies are enabled or not. You can use client-side script techniques or s[……]

Read more

Simple date picker

20 September 2013 | Category: General, JavaScript | Comments (2)

Basic information’s

I’ve created simple date picker using just JavaScript and CSS. Yes, there is a lot of date pickers, but not like this one 😀 Anyw[……]

Read more

JS tip: always use full reference

17 August 2013 | Category: Browsers, JavaScript, Optimizing | Comments (0)

Let’s say we have an example of code like this:


    function close_window() {
        if (typeof self.close === 'function') {[......]

Read more

Get HTML img element reference by document.getElementById vs document.images

30 June 2013 | Category: JavaScript, Optimizing | Comments (0)

document.images returns a collection of the images in the current HTML document. Well, I assumed that it could be faster to get image reference by usi[……]

Read more

« go backkeep looking »