Tag Archives: Firefox

Javascript – Print an object with alert()

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()

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