Category Archives: Javascript

How to use JSDoc @event tag correctly?

I am using JSDoc 3.4.2 for my Javascript API documentation need. By looking at the @event tag example, when I tried to use it, the event name was replaced with “event:” + event name which was a sign that it was looking at the @event tag correctly but found two issues. When I use @fire… Read More »

JSDoc – Customize output documentation files

I am using JSDoc 3.4.2 for my Javascript library documentation. I wanted to make the change to the output files so here are the tricks I used to make following changes. In order to make the change, I have copied all the files from the default template available at “C:\Users\USERNAME\AppData\Roaming\npm\node_modules\jsdoc\templates\default” (JSDoc over Node.js location) to… Read More »

Crash FreeTextBox using Javascript

Would you like to crash FreeTextBox? Here is the trick. Visit the page Click on HTML view and copy/paste the following code. <script language="javascript">alert("Hi");</script> Hello Press “Save” button. This will convert your code into <script language="javascript"> <![CDATA[lert("Hi");]]> </script> Hello Note that “a” is missing. Pretty interesting!!! hmmmmmm…. Now again click on HTML view and… Read More »

Be Careful When You Are Using Javascript parseInt() Function

First of all guess the result and then get the actual answer by clicking on the button “Show Result” parseInt("04")=?; parseInt("08")=?; In Javascript if the string starts with “0”, the string will be parsed as if it is octal number. (i.e. base 8) instead of decimal number(i.e. base 10). So if you are parsing the… Read More »