During web development, sometimes we may need to print the whole Javascript object for debug purpose. You can simply dump the object to the alert box by toSource(). Continue reading Javascript – Print an object with alert()
Tag Archives: Firefox
Javascript – Negative substr() problem in Internet Explorer
It is very common to extract part of a string in computer programming and there is no exception in Javascript. Here are 2 functions for string extraction
- aString.substr(start, length)
- aString.substring(start, stop)
Continue reading Javascript – Negative substr() problem in Internet Explorer
Writing Your Own Firefox Plugin
Firefox plugin basically is a Javascript program with XUL – XML User Interface Markup Language. This post will create a simple Firefox plugin which will highlight a specific word in a HTML. The following example is base on the work done by Robert Nyman @ How to develop a Firefox extension. Continue reading Writing Your Own Firefox Plugin