Profile
Achievement
anagaiyahoocom's Recent JavaScript Snippets
- All /
« Prev 1 Next »
This will check if object is an array object.
This will add isArray() method to Array native object. Can be used to check if passed in object is an array. Future ecmascript 5 will have this included. Can use this in the meantime.
Using instance...
0
656
posted 12 years ago by anagaiyahoocom
This will detect if console.log is available in browser and display the message. Otherwise will display as alert message
0
579
posted 12 years ago by anagaiyahoocom
Is very inefficient to attach a anonymous function event handlers to multiple items in a selection. The function is duplicated for each element.
This shows how you can just create a single function and in the event handler callback just call that...
0
491
posted 12 years ago by anagaiyahoocom